Skip to content

Commit

Permalink
shellcheck fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed Feb 16, 2018
1 parent 68dd5cf commit d45f654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions update-golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ find_latest() {
else
fetch="curl --silent"
fi
last=$(scan_versions $fetch | tail -1)
last=$(scan_versions "$fetch" | tail -1)
if echo "$last" | grep -q -E '[0-9]\.[0-9]+(\.[0-9]+)?'; then
msg find_latest: found last release: "$last"
release=$last
Expand Down Expand Up @@ -112,9 +112,9 @@ goroot=$destination/go
filepath=$cache/$filename
new_install=$destination/$label

tmp= ;# will be set
tmp='' ;# will be set
save_dir=$PWD
previous_install= ;# will be set
previous_install='' ;# will be set
cleanup() {
[ -n "$tmp" ] && [ -f "$tmp" ] && msg cleanup: $tmp && rm $tmp
[ -n "$save_dir" ] && cd "$save_dir" || exit 2
Expand Down
2 changes: 1 addition & 1 deletion update-golang.sh.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17a323f6303a859aadc2925344699f8c2bca98f13937e7029d10029f94067e97 update-golang.sh
074d4be3472c165b4112201ab2aef2dcef6fbe946dc9c8be4d97878fc3a6908e update-golang.sh

0 comments on commit d45f654

Please sign in to comment.