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