diff --git a/helpers/update.sh b/helpers/update.sh index b3d7082..3d02446 100755 --- a/helpers/update.sh +++ b/helpers/update.sh @@ -245,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