Compare commits
3 Commits
4456653f03
...
a4d466fe3f
Author | SHA1 | Date | |
---|---|---|---|
a4d466fe3f | |||
e42c94cda9 | |||
2f1e21f79b |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user