Skip to content
Snippets Groups Projects
Commit 05c27885 authored by Cédric OLIVIER's avatar Cédric OLIVIER Committed by Pierre Smeyers
Browse files

fix: execute hook scripts with shebang shell

parent a67b05f9
No related branches found
No related tags found
No related merge requests found
...@@ -271,7 +271,8 @@ stages: ...@@ -271,7 +271,8 @@ stages:
if [[ -f "$deployscript" ]] if [[ -f "$deployscript" ]]
then then
log_info "--- deploy script (\\e[33;1m${deployscript}\\e[0m) found: execute" log_info "--- deploy script (\\e[33;1m${deployscript}\\e[0m) found: execute"
sh "$deployscript" chmod +x "$deployscript"
"$deployscript"
else else
log_error "--- no deploy script found: abort" log_error "--- no deploy script found: abort"
exit 1 exit 1
...@@ -304,7 +305,8 @@ stages: ...@@ -304,7 +305,8 @@ stages:
if [[ -f "$cleanupscript" ]] if [[ -f "$cleanupscript" ]]
then then
log_info "--- cleanup script (\\e[33;1m${cleanupscript}\\e[0m) found: execute" log_info "--- cleanup script (\\e[33;1m${cleanupscript}\\e[0m) found: execute"
sh "$cleanupscript" chmod +x "$cleanupscript"
"$cleanupscript"
else else
log_error "--- no cleanup script found: abort" log_error "--- no cleanup script found: abort"
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment