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.md | changed |
install-2.8.0.sh | changed |
README.md | ||
---|---|---|
@@ -22,9 +22,9 @@ | ||
22 | 22 … | |
23 | 23 … | Install git-ssb v2.8.0 binary for linux-{x64,armv7,arm64,x86} or macos-x64: |
24 | 24 … | |
25 | 25 … | ```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 | |
27 | 27 … | ``` |
28 | 28 … | [Licenses for git-ssb v2.8.0 binary release](&/SLyvSzaNPh+s/6cRHxPjnki0w6h9i2dWLJDkfPjQVA=.sha256) |
29 | 29 … | |
30 | 30 … | git-ssb can also be installed via [ssb-npm][]: |
install-2.8.0.sh | ||
---|---|---|
@@ -1,9 +1,8 @@ | ||
1 | 1 … | #!/bin/sh |
2 | -{ | |
3 | 2 … | blobs_base=${SSB_BLOBS_BASE:-http://localhost:8989/blobs/get/} |
4 | 3 … | |
5 | -system=$(uname -sm) || return 1 | |
4 … | +system=$(uname -sm) || exit 1 | |
6 | 5 … | case "$system" in |
7 | 6 … | Linux\ x86_64) set -- \ |
8 | 7 … | '&hZbFmTg0iAA2A8oFsa9h0xnUaQcwha3Uc3L3UqXGRLQ=.sha256' \ |
9 | 8 … | '&ZZ5WetGZ8XE+EDV1WpnFTnvC+bwwna7GJAh71moEZdo=.sha256' \ |
@@ -100,9 +99,9 @@ | ||
100 | 99 … | } |
101 | 100 … | } |
102 | 101 … | EOF |
103 | 102 … | |
104 | -tmp_dir=$(mktemp -d "${TMPDIR:-/tmp}/ssb-pkg.XXXXXXXXX") || return 1 | |
103 … | +tmp_dir=$(mktemp -d "${TMPDIR:-/tmp}/ssb-pkg.XXXXXXXXX") || exit 1 | |
105 | 104 … | node_bin="$tmp_dir/ssb-pkg-node-$$" |
106 | 105 … | install_js="$tmp_dir/ssb-pkg-install-$$" |
107 | 106 … | |
108 | 107 … | while ! for id; do |
@@ -115,6 +114,5 @@ | ||
115 | 114 … | do sleep 1; done |
116 | 115 … | "$node_bin" "$install_js" |
117 | 116 … | rc=$? |
118 | 117 … | rm -rf "$tmp_dir" |
119 | -return $rc | |
120 | -} | |
118 … | +exit $rc |
Built with git-ssb-web