From 85d30152f29f5411dea0679271bba61cbfd8da5a Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Thu, 27 Oct 2016 10:57:41 -0700 Subject: [PATCH] Add version compare function to setup/index.txt Okay Ivan, you can "I told you so" now. I didn't see any major gotchas to changing the version and was SURE there'd be no reason to write the convoluted comparison function until after everything was nicely redone and restructured and whatnot. Fortunately I only need it in the main script for now, and will hopefully very soon be able to just load it from a common function file and use it where needed. I still don't regret doing it, but all the work I had to do in order to make sure I didn't screw it up (or rather that I fixed it after screwing it up) are totally on me. --- scripts/a2server-3-sharing.txt | 2 +- setup/index.txt | 64 ++++++++++++++++++++++++++++++++-- 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/scripts/a2server-3-sharing.txt b/scripts/a2server-3-sharing.txt index c204d09..27b770a 100755 --- a/scripts/a2server-3-sharing.txt +++ b/scripts/a2server-3-sharing.txt @@ -49,7 +49,7 @@ debianName=$(lsb_release -cs) if [[ -f /usr/local/etc/A2SERVER-version ]]; then read a2sVersion