Only run postdeploy script if executable

master
Lukas Bestle 9 years ago
parent 97da46771b
commit 499201e11c

@ -182,7 +182,7 @@ echo -e "\033[1;35mRun on \033[34m$(date)\033[35m by \033[34m$USER\033[35m:\n---
echo -e " => \033[32mSuccess.\033[0m"
# Run post-deploy script if existing
if [[ -f "$destination/.postdeploy.sh" ]]; then
if [[ -x "$destination/.postdeploy.sh" ]]; then
# Set the working directory to the destination
oldpwd="$(pwd)"
cd "$destination"

Loading…
Cancel
Save