Merge "Use "type" command to take place of "which""

This commit is contained in:
Jenkins 2017-07-19 14:37:48 +00:00 committed by Gerrit Code Review
commit e3b9e0ca6c
2 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ echo "$GIT_PRIVATE_KEY" > $APP_DIR/code/id_rsa
# Test the application code
TLOG "===>" Testing App
if [[ $USE_DRONE != null && $(which drone) ]]; then
if [[ $USE_DRONE != null && $(type drone) ]]; then
TLOG "===>" Using Drone
if [[ ! -e $APP_DIR/code/.drone.yml ]]; then
TLOG "===>" Creating .drone.yml

View File

@ -105,7 +105,7 @@ echo "$GIT_PRIVATE_KEY" > $APP_DIR/code/id_rsa
# Test the application code
TLOG "===>" Testing App
if [[ $USE_DRONE != null && $(which drone) ]]; then
if [[ $USE_DRONE != null && $(type drone) ]]; then
TLOG "===>" Using Drone
if [[ ! -e $APP_DIR/code/.drone.yml ]]; then
TLOG "===>" Creating .drone.yml