summaryrefslogtreecommitdiffstats
path: root/ci/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'ci/deploy')
-rwxr-xr-xci/deploy/deploy.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh
index c3b78055..7f57d01a 100755
--- a/ci/deploy/deploy.sh
+++ b/ci/deploy/deploy.sh
@@ -187,9 +187,12 @@ if [ $DRY_RUN -eq 1 ]; then
exit 1
fi
-if [ ! -x ${WORKSPACE}/opnfv.bin ]; then
- echo "opnfv.bin does not exist in WORKSPACE or is not executable, exit."
+if [ ! -f ${WORKSPACE}/opnfv.bin ]; then
+ echo "opnfv.bin does not exist in WORKSPACE, exit."
exit 1
+elif [ ! -x ${WORKSPACE}/opnfv.bin ]; then
+ echo "opnfv.bin in WORKSPACE is not executable, chmod it and continue."
+ chmod +x ${WORKSPACE}/opnfv.bin
fi
test -d ${VM_STORAGE} || mkdir -p ${VM_STORAGE}