scripts/fetch in rvm-0.1.27 vs scripts/fetch in rvm-0.1.29

- old
+ new

@@ -17,11 +17,11 @@ if [[ -z "$1" ]] ; then $rvm_scripts_path/log "fail" "BUG: $0 called without an argument :/" ; exit 1 ; fi url="$1"; download=1 ; package_name="$2" -if ! which curl &> /dev/null; then - $rvm_scripts_path/log "fail" "rvm requires curl, which does not seem to exist in your path :(" +if ! command -v curl > /dev/null ; then + $rvm_scripts_path/log "fail" "rvm requires curl. curl was not found in your active path." exit 1 elif [[ ! -z ${rvm_proxy} ]] ; then fetch_command="curl -x${rvm_proxy} -L --create-dirs -C - " # -s for silent else fetch_command="curl -L --create-dirs -C - " # -s for silent