Sha256: c8a09860dfea80222fd12b6a3d9bdc803e4bec7b296cc4c63de2b1e49af6c9d2

Contents?: true

Size: 355 Bytes

Versions: 9

Compression:

Stored size: 355 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"
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

9 entries across 9 versions & 1 rubygems

Version Path
rvm-1.0.2 scripts/md5
rvm-1.0.1 scripts/md5
rvm-1.0.0 scripts/md5
rvm-0.1.47 scripts/md5
rvm-0.1.46 scripts/md5
rvm-0.1.45 scripts/md5
rvm-0.1.44 scripts/md5
rvm-0.1.43 scripts/md5
rvm-0.1.42 scripts/md5