aboutsummaryrefslogtreecommitdiff
path: root/v1/install.sh
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-05-11 21:54:44 +0300
committerGitHub <noreply@github.com>2022-05-11 21:54:44 +0300
commitccaa08a416778453526e554c32b5e80b77797ba6 (patch)
treeb56ba34b0a2fd8dd6484cbad0c7b4fcb1d847edd /v1/install.sh
parent01eb5874b6662d8be6ea1e4390093aef48c04802 (diff)
fix chmod-bug (#4)
Diffstat (limited to 'v1/install.sh')
-rwxr-xr-xv1/install.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/v1/install.sh b/v1/install.sh
index 2bfc9b9..f8f23cd 100755
--- a/v1/install.sh
+++ b/v1/install.sh
@@ -48,7 +48,8 @@ while IFS= read -r feature_line; do
echo "(*) Skipping. Script already run with same arguments."
else
# Execute script and create a marker with the script args
- chmod +x ${script_command}
+ script_name="$(echo $script_command | cut -d' ' -f1)"
+ chmod +x ${script_name}
./${script_command}
echo "${script_command}" > "${feature_marker}"
fi