fix(helpers:update): make downloaded scripts executable

This commit is contained in:
Asif Bacchus 2021-07-27 21:57:38 -06:00
parent e42c94cda9
commit a4d466fe3f
1 changed files with 4 additions and 0 deletions

View File

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