From a4d466fe3f481b67bbefc9b0cf25e3a85b752c27 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 27 Jul 2021 21:57:38 -0600 Subject: [PATCH] fix(helpers:update): make downloaded scripts executable --- helpers/update.sh | 4 ++++ 1 file changed, 4 insertions(+) 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