forked from lazyhacker/getgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
12 lines (9 loc) · 923 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#if [ $UID != 0 ]; then
# echo "Please run this script with sudo:"
# echo "sudo $0 $*"
# exit 1
#fi
dl=`getgo -dir ~/Downloads -show true`
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf $dl