Skip to content

Commit

Permalink
Fix which check during yarn install (#2061) (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisGorbachev authored and torifat committed Nov 29, 2016
1 parent caa94a6 commit 2a0afc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ yarn_install() {
printf "${white}Installing Yarn!$reset\n"

if [ -d "$HOME/.yarn" ]; then
if [ -n `which yarn` ]; then
if which yarn; then
local latest_url
local specified_version
local version_type
Expand All @@ -169,8 +169,8 @@ yarn_install() {
rm -rf "$HOME/.yarn"
fi
else
printf "$red> ~/.yarn already exists, possibly from a past Yarn install.$reset\n"
printf "$red> Remove it (rm -rf ~/.yarn) and run this script again.$reset\n"
printf "$red> $HOME/.yarn already exists, possibly from a past Yarn install.$reset\n"
printf "$red> Remove it (rm -rf $HOME/.yarn) and run this script again.$reset\n"
exit 0
fi
fi
Expand Down

0 comments on commit 2a0afc7

Please sign in to comment.