From 823ca6480c77e8bfe422b77be50b4251337694b0 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Sat, 25 Feb 2017 18:04:42 +0800 Subject: 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 --- ci/deploy/deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ci') 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} -- cgit 1.2.3-korg