Sha256: 7c88da86b97817b6fed9899f42f4476191e7ad2f24709946524250d251829b85

Contents?: true

Size: 397 Bytes

Versions: 30

Compression:

Stored size: 397 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="md5"
fi

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

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

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rvm-0.1.19 scripts/md5
rvm-0.1.18 scripts/md5
rvm-0.1.16 scripts/md5
rvm-0.1.15 scripts/md5
rvm-0.1.14 scripts/md5
rvm-0.1.13 scripts/md5
rvm-0.1.12 scripts/md5
rvm-0.1.11 scripts/md5
rvm-0.1.10 scripts/md5
rvm-0.1.9 scripts/md5
rvm-0.1.8 scripts/md5
rvm-0.1.7 scripts/md5
rvm-0.1.6 scripts/md5
rvm-0.1.5 scripts/md5
rvm-0.1.3 scripts/md5
rvm-0.1.2 scripts/md5
rvm-0.1.1 scripts/md5
rvm-0.1.0 scripts/md5
rvm-0.0.9999 scripts/md5
rvm-0.0.999 scripts/md5