This repository has been archived by the owner on Mar 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add install.sh and README update for install directions
[skip ci] ***NO_CI***
- Loading branch information
1 parent
4327560
commit e1c0770
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
echo "Downloading the lastest 'inc' and installing it in ~/bin" | ||
mkdir ~/bin | ||
wget $(curl https://api.github.com/repos/ethankhall/inc/releases/latest | jq -r '.assets[] | select(.name == "inc-mac") | .browser_download_url') -O ~/bin/inc.bck | ||
mv ~/bin/inc.bck ~/bin/inc | ||
chmod +x ~/bin/inc | ||
|
||
WHERE_INC=`which inc` | ||
if [ $? -eq 1 ]; then | ||
echo "Looks like 'inc' didn't end up on your PATH. Please add \$HOME/bin to your PATH." | ||
exit 1 | ||
fi | ||
|
||
if [ "$WHERE_INC" != "$HOME/bin/inc" ]; then | ||
echo "The recent copy of inc isn't first on your path, you may still be using an old version!" | ||
exit 2 | ||
fi |