Skip to content

Commit

Permalink
clear out client directory when installing standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 4, 2018
1 parent c673263 commit 9a9f341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion install-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@
mkdir -p /usr/local/lib
cd /usr/local/lib
rm -rf heroku
rm -rf ~/.local/share/heroku/client
curl https://cli-assets.heroku.com/heroku-\$OS-\$ARCH.tar.gz | tar xz
rm /usr/local/bin/heroku
ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
SCRIPT
# test the CLI
LOCATION=$(which heroku)
echo "heroku cli installed to $LOCATION"
echo "heroku installed to $LOCATION"
heroku version
}
2 changes: 1 addition & 1 deletion install-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
{
set -ex
set -e
SUDO=''
if [ "$(id -u)" != "0" ]; then
SUDO='sudo'
Expand Down

0 comments on commit 9a9f341

Please sign in to comment.