git ssb

39+

cel / git-ssb



Commit de8914f5b6c5d3757ad1126dbc71c8978f30e789

Update ssb-pkg install script

Don't use return from command group, as some shells don't like that.
cel committed on 5/17/2020, 9:14:51 PM
Parent: a6304785bbe2b65407eebd94a5168c670148af4a

Files changed

README.mdchanged
install-2.8.0.shchanged
README.mdView
@@ -22,9 +22,9 @@
2222
2323 Install git-ssb v2.8.0 binary for linux-{x64,armv7,arm64,x86} or macos-x64:
2424
2525 ```sh
26-curl -s 'http://localhost:8989/blobs/get/&mu/nobVn4c2QDxfpH097thuH3K3Ra4V7be/U67e5xIk=.sha256' | sh
26 +curl -s 'http://localhost:8989/blobs/get/&v8gjQ2rEIwp8pTd3/I2Vw2qJHQVCK4Wpch6nmHMIzQA=.sha256' | sh
2727 ```
2828 [Licenses for git-ssb v2.8.0 binary release](&/SLyvSzaNPh+s/6cRHxPjnki0w6h9i2dWLJDkfPjQVA=.sha256)
2929
3030 git-ssb can also be installed via [ssb-npm][]:
install-2.8.0.shView
@@ -1,9 +1,8 @@
11 #!/bin/sh
2-{
32 blobs_base=${SSB_BLOBS_BASE:-http://localhost:8989/blobs/get/}
43
5-system=$(uname -sm) || return 1
4 +system=$(uname -sm) || exit 1
65 case "$system" in
76 Linux\ x86_64) set -- \
87 '&hZbFmTg0iAA2A8oFsa9h0xnUaQcwha3Uc3L3UqXGRLQ=.sha256' \
98 '&ZZ5WetGZ8XE+EDV1WpnFTnvC+bwwna7GJAh71moEZdo=.sha256' \
@@ -100,9 +99,9 @@
10099 }
101100 }
102101 EOF
103102
104-tmp_dir=$(mktemp -d "${TMPDIR:-/tmp}/ssb-pkg.XXXXXXXXX") || return 1
103 +tmp_dir=$(mktemp -d "${TMPDIR:-/tmp}/ssb-pkg.XXXXXXXXX") || exit 1
105104 node_bin="$tmp_dir/ssb-pkg-node-$$"
106105 install_js="$tmp_dir/ssb-pkg-install-$$"
107106
108107 while ! for id; do
@@ -115,6 +114,5 @@
115114 do sleep 1; done
116115 "$node_bin" "$install_js"
117116 rc=$?
118117 rm -rf "$tmp_dir"
119-return $rc
120-}
118 +exit $rc

Built with git-ssb-web