diff options
| author | liv <mokou@fastmail.com> | 2023-02-12 15:42:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-12 15:42:49 +0100 |
| commit | 890d6549dea9d1825dd1eaad890b3908c2d6b4c4 (patch) | |
| tree | 51c30661b038351fc598e6e8bfb596ebf1c34a85 | |
| parent | 0ea42f60bd559dd7f99c2d7019898505488f7734 (diff) | |
| parent | 0b119339eb15f92bd6b4fe111f0678f01e972e3b (diff) | |
Merge pull request #1364 from alexandergill/fix-install-script
Fix `bash: line 105: v1[$i]: unbound variable` in install script
| -rwxr-xr-x | install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -99,7 +99,7 @@ function vercomp() { done fi - for i in `seq 0 $max_len` + for i in `seq 0 $((max_len-1))` do # Fill empty fields with zeros in v1 if [ -z "${v1[$i]}" ] @@ -124,7 +124,7 @@ function vercomp() { } RustVersion=$(rustc --version | cut -d " " -f 2) -MinRustVersion=1.56 +MinRustVersion=1.58 vercomp "$RustVersion" $MinRustVersion || ec=$? if [ ${ec:-0} -eq 2 ] then |
