+ # 8 is return code for 404. for a new release, they might not have a binary out yet
+ if [[ $ret == 8 ]]; then
+ ver=${vers[1]}
+ dl
+ fi
+
+ new_timestamp=$(stat -c %Y $f)
+ if [[ $timestamp != $new_timestamp || ! -e /usr/local/go/bin/go ]]; then
+ m sudo rm -rf /usr/local/go
+ m sudo tar -C /usr/local -xzf $f
+ fi
+
+ shopt -s nullglob
+ for x in go*.tar.gz; do
+ if [[ $x == $f ]]; then continue; fi
+ rm -fv $x
+ done