Skip to content

Commit

Permalink
Update install-standalone script (#3179)
Browse files Browse the repository at this point in the history
* Fix escaping in install-standalone.sh

* move /usr/local/bin check after platform check

`/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

---------

Co-authored-by: Dan Massey <[email protected]>
Co-authored-by: lonnen <[email protected]>
  • Loading branch information
3 people authored Jan 17, 2025
1 parent 48b7f8a commit f6b8ea6
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 f6b8ea6

Please sign in to comment.