fix(helpers:update): make downloaded scripts executable
This commit is contained in:
parent
e42c94cda9
commit
a4d466fe3f
@ -245,6 +245,10 @@ if [ "$doScriptUpdate" -eq 1 ]; then
|
|||||||
updateSuccess=$((updateSuccess + 1))
|
updateSuccess=$((updateSuccess + 1))
|
||||||
# overwrite old version of file
|
# overwrite old version of file
|
||||||
mv -f "$updateFilename.tmp" "$updateFilename"
|
mv -f "$updateFilename.tmp" "$updateFilename"
|
||||||
|
if [ "${updateFilename##*.}" = "sh" ]; then
|
||||||
|
# shell file --> make it executable
|
||||||
|
chmod +x "$updateFilename"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user