Skip to content

Commit f86a7c9

Browse files
authored
feat: repair linux script (#5)
1 parent cee5cad commit f86a7c9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

scripts/installation-linux.sh

+10-5
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,24 @@ info "Downloading version v$VERSION..."
1818
ARCH=$(dpkg --print-architecture)
1919

2020
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
2323
else
2424
fatal "Architecture $ARCH is not supported by this script for the moment, please be free to open an issue."
2525
exit 1
2626
fi
2727

2828
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
3135

3236
warn "Asking you password for installing in your path [/usr/local/bin]"
3337
sudo mv git-branch /usr/local/bin/gb
34-
rm -f git-branch
38+
cd ..
39+
rm -rf git-branch-0.0.11
3540

3641
info "Successfully installed!"

0 commit comments

Comments
 (0)