Skip to content

Commit 8752160

Browse files
author
kfbishop
committed
fixed stage1 check
1 parent fdc4538 commit 8752160

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

linux-installer/idt-installer

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function install {
136136
echo
137137
prompt "Use IBM internal '$repo' repos for install/updates (Y/n)?"
138138
echo
139-
if [[ "$REPLY" == [Yy]* ]]; then
139+
if [[ "$REPLY" != [Nn]* ]]; then
140140
IDT_INSTALL_BMX_URL="https://clis.stage1.ng.bluemix.net/install"
141141
IDT_INSTALL_BMX_REPO_NAME="${repo}"
142142
IDT_INSTALL_BMX_REPO_URL="${url}"
@@ -171,8 +171,8 @@ function install_deps {
171171

172172
#-- Xcode and Cocoapods
173173
log "Checking if Xcode is installed"
174-
if [[ -z "$(ls -d /Applications/Xcode*.zpp)" ]]; then
175-
log "Xcode does not appear to be installed on this system."
174+
if [[ -z "$(ls -d /Applications/Xcode*.zpp 2>/dev/null)" ]]; then
175+
warn "Xcode does not appear to be installed on this system."
176176
fi
177177
log "Installing/updating external dependency: cocoapods"
178178
if [[ -z "$(gem list --local | grep "^cocoapods ")" || "$FORCE" == true ]]; then

0 commit comments

Comments
 (0)