Upgrade script updates header too

This commit is contained in:
deajan 2016-08-19 10:20:25 +02:00
parent 51b43487e2
commit add5c69929
1 changed files with 4 additions and 1 deletions

View File

@ -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"
}