Skip to content

Commit

Permalink
move /usr/local/bin check after platform check
Browse files Browse the repository at this point in the history
`/usr/local/bin` is an os-specific path that must exist on your $PATH. This change moves the check confirming that to _after_ the OS and platform checks to allow for it to bail earlier on windows with a more helpful error message
  • Loading branch information
lonnen authored and eablack committed Jan 16, 2025
1 parent de6f9b6 commit b6bd3a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
echoerr() { echo "\$@" 1>&2; }
if [[ ! ":$PATH:" == *":/usr/local/bin:"* ]]; then
echoerr "Your path is missing /usr/local/bin, you need to add this to use this installer."
exit 1
fi
if [ "\$(uname)" == "Darwin" ]; then
OS=darwin
elif [ "\$(expr substr \$(uname -s) 1 5)" == "Linux" ]; then
Expand All @@ -43,6 +38,11 @@
exit 1
fi
if [[ ! ":$PATH:" == *":/usr/local/bin:"* ]]; then
echoerr "Your path is missing /usr/local/bin, you need to add this to use this installer."
exit 1
fi
mkdir -p /usr/local/lib
cd /usr/local/lib
rm -rf heroku
Expand Down

0 comments on commit b6bd3a1

Please sign in to comment.