scripts/fetch in rvm-1.1.3 vs scripts/fetch in rvm-1.1.4

- old
+ new

@@ -14,18 +14,20 @@ [[ -f "$archive" ]] && rm -f "$archive" } record_md5() { - if [[ "Darwin" = "$(uname)" ]] || [[ "FreeBSD" = "$(uname)" ]]; then - - archive_md5="$(/sbin/md5 -q "${archive}")" - - else - - archive_md5="$(md5sum "${archive}" | awk '{print $1}')" - - fi + case "$(uname)" in + Darwin|FreeBSD) + archive_md5="$(/sbin/md5 -q "${archive}")" + ;; + OpenBSD) + archive_md5="$(/bin/md5 -q "${archive}")" + ;; + Linux|*) + archive_md5="$(md5sum "${archive}" | awk '{print $1}')" + ;; + esac "$rvm_path/scripts/db" "$rvm_path/config/md5" "$archive" "$archive_md5" }