Skip to content

Commit 1cdfe9f

Browse files
committed
Add install-osx.sh script
1 parent 5a52018 commit 1cdfe9f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

install-osx.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
pushd /tmp/ > /dev/null
4+
5+
echo "Installing latest 'mob' release from GitHub"
6+
url=$(curl -s https://api.github.com/repos/remotemobprogramming/mob/releases/latest \
7+
| grep "browser_download_url.*mob_.*darwin_amd64\.tar\.gz" \
8+
| cut -d ":" -f 2,3 \
9+
| tr -d \")
10+
echo "$url"
11+
tarball="${url##*/}"
12+
curl -sSL $url > $tarball
13+
14+
echo "Extracting $tarball"
15+
tar -xzf $tarball
16+
17+
# echo "Installing 'mob' in '/usr/local/bin'"
18+
chmod +x mob
19+
mv mob /usr/local/bin/
20+
21+
popd > /dev/null
22+
23+
location="$(which mob)"
24+
echo "Mob binary location: $location"
25+
26+
version="$(mob version)"
27+
echo "Mob binary version: $version"

0 commit comments

Comments
 (0)