-
Notifications
You must be signed in to change notification settings - Fork 1
/
jumper_install.sh
24 lines (20 loc) · 928 Bytes
/
jumper_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env sh
brew uninstall jumper
wget https://raw.githubusercontent.com/asannikov/jumper/master/homebrew/jumper.rb
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
PATH_TO_FORMULA="/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jumper.rb"
elif [[ "$OSTYPE" == "darwin"* ]]; then
PATH_TO_FORMULA="/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jumper.rb"
elif [[ "$OSTYPE" == "cygwin" ]]; then
PATH_TO_FORMULA="/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jumper.rb"
elif [[ "$OSTYPE" == "freebsd"* ]]; then
PATH_TO_FORMULA="/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jumper.rb"
else
echo "unknown OS $OSTYPE"
exit 1
fi
rm -fr $PATH_TO_FORMULA
brew create https://github.com/asannikov/jumper
yes | cp jumper.rb $PATH_TO_FORMULA
rm jumper.rb
brew install --build-from-source jumper