scripts/fetch in rvm-0.1.32 vs scripts/fetch in rvm-0.1.33
- old
+ new
@@ -40,10 +40,10 @@
# Check first if we have the correct archive
archive_md5="$($rvm_scripts_path/db "$rvm_config_path/md5" "$archive")"
if [[ -e "$archive" ]] && [[ ! -z "$archive_md5" ]] ; then
if [[ ! -z "$rvm_debug_flag" ]] ; then $rvm_scripts_path/log "debug" "Found archive and its md5, testing correctness" ; fi
- if [[ $($rvm_scripts_path/md5 $archive $archive_md5) -gt 0 ]] ; then
+ if ! $rvm_scripts_path/md5 "${rvm_archives_path}/${archive}" "$archive_md5" ; then
if [[ ! -z "$rvm_debug_flag" ]] ; then $rvm_scripts_path/log "debug" "Archive is bad, downloading" ; fi
download=1
else
if [[ ! -z "$rvm_debug_flag" ]] ; then $rvm_scripts_path/log "debug" "Archive is good, not downloading" ; fi
download=0