File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
set -eux
3
3
4
- tag=$( curl --retry 3 -s " https://api.github.com/repos/kitproj/sim/releases/latest" | jq -r ' .tag_name' )
4
+ tag=
5
+ while [ " $tag " = " " ]; do
6
+ tag=$( curl -fsL " https://api.github.com/repos/kitproj/sim/releases/latest" | jq -r ' .tag_name' )
7
+ done
8
+
5
9
version=$( echo $tag | cut -c 2-)
6
- url=" https://github.com/kitproj/sim/releases/download/${tag} /sim_${version} _$( uname) _$( uname -m | sed ' s/aarch64/arm64/' ) .tar.gz"
7
- curl --retry 3 -L $url | tar -zxvf - sim
10
+ url=" https://github.com/kitproj/sim/releases/download/${tag} /kit_${version} _$( uname) _$( uname -m | sed ' s/aarch64/arm64/' ) .tar.gz"
11
+
12
+ while [ ! -e kit ]; do
13
+ curl -fsL $url | tar -zxvf - sim
14
+ done
15
+
8
16
chmod +x sim
9
- sudo mv sim /usr/local/bin/sim
17
+ sudo mv kit /usr/local/bin/sim
You can’t perform that action at this time.
0 commit comments