Compare commits

...

3 Commits

View File

@ -196,6 +196,8 @@ if [ "$doScriptUpdate" -eq 1 ]; then
printf "\n%s*** This script has been updated. Please re-run it to load the updated version of this file. ***%s\n\n" "$warn" "$norm"
# overwrite this script with updated script
mv -f ./update.sh.tmp "$localScriptName"
chmod +x "$localScriptName"
exit 0
fi
fi
fi
@ -243,6 +245,10 @@ if [ "$doScriptUpdate" -eq 1 ]; then
updateSuccess=$((updateSuccess + 1))
# overwrite old version of file
mv -f "$updateFilename.tmp" "$updateFilename"
if [ "${updateFilename##*.}" = "sh" ]; then
# shell file --> make it executable
chmod +x "$updateFilename"
fi
fi
fi
else