scripts/fetch in rvm-1.0.11 vs scripts/fetch in rvm-1.0.13

- old
+ new

@@ -7,17 +7,16 @@ result=0 # Set it to cleanup the download on interruption. trap 'cleanup_download' 1 2 3 15 -cleanup_download() { - +cleanup_download() +{ [[ -f "$archive" ]] && rm -f "$archive" - } -record_md5() { - +record_md5() +{ if [[ "Darwin" = "$(uname)" ]] || [[ "FreeBSD" = "$(uname)" ]]; then archive_md5="$(/sbin/md5 -q "${archive}")" else