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
gemrage-0.1.2 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5
rvm-1.0.14 scripts/md5
rvm-1.0.13 scripts/md5
rvm-1.0.11 scripts/md5
rvm-1.0.10 scripts/md5
rvm-1.0.9 scripts/md5
rvm-1.0.8 scripts/md5
rvm-1.0.7 scripts/md5
rvm-1.0.6 scripts/md5
rvm-1.0.5 scripts/md5
rvm-1.0.4 scripts/md5
rvm-1.0.3 scripts/md5