From add5c699294cfcb493ebe40b2fe3bab65cb89cee Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 19 Aug 2016 10:20:25 +0200 Subject: [PATCH] Upgrade script updates header too --- upgrade-v1.x-2.1x.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upgrade-v1.x-2.1x.sh b/upgrade-v1.x-2.1x.sh index ea6c838..efd0a5d 100755 --- a/upgrade-v1.x-2.1x.sh +++ b/upgrade-v1.x-2.1x.sh @@ -6,7 +6,7 @@ AUTHOR="(C) 2016 by Orsiris de Jong" CONTACT="http://www.netpower.fr/obacup - ozy@netpower.fr" OLD_PROGRAM_VERSION="v1.x" NEW_PROGRAM_VERSION="v2.1x" -PROGRAM_BUILD=20160817.1 +PROGRAM_BUILD=2016081901 ## type -p does not work on platforms other than linux (bash). If if does not work, always as$ if ! type "$BASH" > /dev/null; then @@ -204,6 +204,9 @@ function RewriteConfigFiles { sed -i'.tmp' '/^STOP_ON_CMD_ERROR=*/a\'$'\n''RUN_AFTER_CMD_ON_ERROR=no\'$'\n''' "$config_file" fi + # "onfig file rev" to deal with earlier variants of the file + sed -i'.tmp' '/onfig file rev/c\###### '$SUBPROGRAM' config file rev '$PROGRAM_BUILD "$config_file" + rm -f "$config_file.tmp" }