scripts/snapshot in rvm-1.0.2 vs scripts/snapshot in rvm-1.0.3

- old
+ new

@@ -176,15 +176,17 @@ snapshot_usage() { echo "Usage: rvm snapshot {save,load} file" >&2 return 1 } -action="$1" -[[ "$#" -gt 0 ]] && shift +args=($*) +action="${args[0]}" +args="$(echo ${args[@]:1}) " # Strip trailing / leading / extra spacing. + case "$action" in - save) snapshot_save "$@" ;; - load) snapshot_load "$@" ;; + save) snapshot_save "$args" ;; + load) snapshot_load "$args" ;; *) snapshot_usage ;; esac exit $?