File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ user_arg=$1
4
4
stream_cmd=" curl -sL install.mob.sh"
5
5
readme=" https://mob.sh"
6
6
7
+ determine_arch () {
8
+ case " $( uname -s) " in
9
+ Darwin)
10
+ echo " universal"
11
+ ;;
12
+ * )
13
+ echo " amd64"
14
+ ;;
15
+ esac
16
+ }
17
+
7
18
determine_os () {
8
19
case " $( uname -s) " in
9
20
Darwin)
@@ -105,7 +116,7 @@ check_access_rights() {
105
116
install_remote_binary () {
106
117
echo " installing latest 'mob' release from GitHub to $target ..."
107
118
url=$( curl -s https://api.github.com/repos/remotemobprogramming/mob/releases/latest |
108
- grep " browser_download_url.*mob_.*$( determine_os) _amd64 \.$( determine_ending) " |
119
+ grep " browser_download_url.*mob_.*$( determine_os) _ $( determine_arch ) \.$( determine_ending) " |
109
120
cut -d " :" -f 2,3 |
110
121
tr -d ' \"' )
111
122
curl -sSL " $url " | tar xz -C " $target " " $( determine_mob_binary) " && chmod +x " $target " /mob
You can’t perform that action at this time.
0 commit comments