diff options
author | Alex Yang <yangyang1@zte.com.cn> | 2017-02-25 18:04:42 +0800 |
---|---|---|
committer | Alex Yang <yangyang1@zte.com.cn> | 2017-02-25 18:04:42 +0800 |
commit | 823ca6480c77e8bfe422b77be50b4251337694b0 (patch) | |
tree | 9f2c8fa7a1ac48375cc022e082ebe2baafd45e05 /ci/deploy | |
parent | 676c599368459877931563adac1112e7539db488 (diff) |
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 <yangyang1@zte.com.cn>
Diffstat (limited to 'ci/deploy')
-rwxr-xr-x | ci/deploy/deploy.sh | 7 |
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} |