Commit f86a7c9 1 parent cee5cad commit f86a7c9 Copy full SHA for f86a7c9
File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,24 @@ info "Downloading version v$VERSION..."
18
18
ARCH=$( dpkg --print-architecture)
19
19
20
20
if [[ $ARCH = " amd64" ]]; then
21
- curl https://github.com/Tchoupinax/git-branch/releases/download/ v0.0.10/git-branch_0.0.11_linux_amd64 .tar.gz \
22
- -Lo /tmp/git-branch_0 .0.11_linux_amd64 .tar.gz 2> /dev/null
21
+ curl https://github.com/Tchoupinax/git-branch/archive/refs/tags/ v0.0.11 .tar.gz \
22
+ -Lo /tmp/git-branch-v0 .0.11 .tar.gz 2> /dev/null
23
23
else
24
24
fatal " Architecture $ARCH is not supported by this script for the moment, please be free to open an issue."
25
25
exit 1
26
26
fi
27
27
28
28
info " Installing..."
29
- tar -xf /tmp/git-branch_0.0.11_linux_amd64.tar.gz
30
- rm -f /tmp/git-branch_0.0.11_linux_amd64.tar.gz
29
+ tar -xvzf /tmp/git-branch-v0.0.11.tar.gz
30
+ rm -f /tmp/git-branch-v0.0.11.tar.gz
31
+
32
+ cd git-branch-0.0.11
33
+ info " building..."
34
+ go build -o git-branch
31
35
32
36
warn " Asking you password for installing in your path [/usr/local/bin]"
33
37
sudo mv git-branch /usr/local/bin/gb
34
- rm -f git-branch
38
+ cd ..
39
+ rm -rf git-branch-0.0.11
35
40
36
41
info " Successfully installed!"
You can’t perform that action at this time.
0 commit comments