Sha256: 4ac60b65ecaffa7c5c6d3f63a5c235efa2f5ea74dba15c5d0956efecb1e085c8

Contents?: true

Size: 454 Bytes

Versions: 32

Compression:

Stored size: 454 Bytes

Contents

#!/usr/bin/env bash

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

args=($*)
file="${args[0]}"
md5="${args[1]}"
args="$(echo ${args[@]:2}) " # Strip trailing / leading / extra spacing.

if [[ "Linux" = "$(uname)" ]] ; then
  command="md5sum"
elif [[ "Darwin" = "$(uname)" ]] ; then
  command="/sbin/md5 -q"
fi

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

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

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
rvm-1.1.4 scripts/md5
rvm-1.1.3 scripts/md5
rvm-1.1.2 scripts/md5
rvm-1.1.1 scripts/md5
rvm-1.1.0 scripts/md5
rvm-1.0.23 scripts/md5
rvm-1.0.22 scripts/md5
rvm-1.0.21 scripts/md5
rvm-1.0.20 scripts/md5
rvm-1.0.19 scripts/md5
rvm-1.0.18 scripts/md5
rvm-1.0.17 scripts/md5
rvm-1.0.15 scripts/md5
gemrage-1.0.0 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5
gemrage-0.4.1 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5
gemrage-0.4.0 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5
gemrage-0.3.2 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5
gemrage-0.3.1 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5
gemrage-0.3.0 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5
gemrage-0.2.0 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5