Skip to content

Commit

Permalink
Only run latest-updates.php if it exists and is executable
Browse files Browse the repository at this point in the history
  • Loading branch information
gudmdharalds committed Feb 13, 2018
1 parent 4bae2c8 commit 793d44a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ fi


# Fetch the latest release tag of vip-go-ci

#export VIP_GO_CI_VER=`~/vip-go-ci-tools/vip-go-ci/latest-release.php`
export VIP_GO_CI_VER=""

if [ -f ~/vip-go-ci-tools/vip-go-ci/latest-release.php ] ||
[ -x ~/vip-go-ci-tools/vip-go-ci/latest-release.php ] ; then
export VIP_GO_CI_VER=`php ~/vip-go-ci-tools/vip-go-ci/latest-release.php`
fi

if [ "$VIP_GO_CI_VER" == "" ] ; then
# latest-release.php is not available, fetch it
# and then fetch the latest release number of vip-go-ci
Expand Down

0 comments on commit 793d44a

Please sign in to comment.