Skip to content

Commit

Permalink
Fix install.sh (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisGorbachev authored and Daniel15 committed Dec 9, 2016
1 parent d4ac125 commit ea58899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,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 @@ -180,8 +180,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 ea58899

Please sign in to comment.