From: Alex Yang Date: Sat, 25 Feb 2017 10:04:42 +0000 (+0800) Subject: Make opnfv.bin executable X-Git-Tag: 1.0.0~40 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=823ca6480c77e8bfe422b77be50b4251337694b0;p=daisy.git Make opnfv.bin executable The downloaded opnfv.bin file has no executable attribute, although it has +x in building-job. Change-Id: I38347db6de2630e0a92106df22b027efa20d4498 Signed-off-by: Alex Yang --- 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}