Sha256: a3dde8a76c80e2bdb35886d7a572bd8d4260b47498bec5c77228af8add8006cd

Contents?: true

Size: 403 Bytes

Versions: 20

Compression:

Stored size: 403 Bytes

Contents

#!/usr/bin/env bash

if [[ "$rvm_trace_flag" -eq 1 ]] ; then set -x ; export rvm_trace_flag ; fi

file=$1 ; md5=$2

if [[ "Linux" = "$(uname)" ]] ; then
  command="md5sum"
  #md5sum --status -c "$file"
elif [[ "Darwin" = "$(uname)" ]] ; then
  #md5 --status -c "$1"
  command="/sbin/md5"
fi

file_md5=$($command $file | awk '{print $NF}')

if [[ "$file_md5" = "$md5" ]] ; then
  exit 0
else
  exit 1
fi

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rvm-0.1.41 scripts/md5
rvm-0.1.40 scripts/md5
rvm-0.1.39 scripts/md5
rvm-0.1.38 scripts/md5
rvm-0.1.37 scripts/md5
rvm-0.1.36 scripts/md5
rvm-0.1.35 scripts/md5
rvm-0.1.34 scripts/md5
rvm-0.1.33 scripts/md5
rvm-0.1.32 scripts/md5
rvm-0.1.31 scripts/md5
rvm-0.1.30 scripts/md5
rvm-0.1.29 scripts/md5
rvm-0.1.27 scripts/md5
rvm-0.1.26 scripts/md5
rvm-0.1.24 scripts/md5
rvm-0.1.23 scripts/md5
rvm-0.1.22 scripts/md5
rvm-0.1.21 scripts/md5
rvm-0.1.20 scripts/md5