scripts/environment-convertor in rvm-0.1.47 vs scripts/environment-convertor in rvm-1.0.0

- old
+ new

@@ -28,18 +28,18 @@ contents_of_environment_file() { cat "$rvm_environments_path/$(__rvm_environment_identifier)" } convert_to_shell() { - convert_path_to_fish "$(contents_of_environment_file | grep '^export PATH=')" + convert_path_to_fish "$(contents_of_environment_file | \grep '^export PATH=')" while read -r shell_line; do - if echo "$shell_line" | grep -q '^unset '; then + if echo "$shell_line" | \grep -q '^unset '; then echo "$shell_line" | convert_unset_to_fish else echo "$shell_line" | convert_exports_to_fish fi - done < <(contents_of_environment_file | grep -v '^export [^=]*$' | grep -v '^export PATH=') + done < <(contents_of_environment_file | \grep -v '^export [^=]*$' | \grep -v '^export PATH=') unset shell_line } ensure_has_shell() { for item in "path" "unset" "exports"; do @@ -55,6 +55,6 @@ # Check we're loading a different shell. if [[ "$(__rvm_environment_identifier)" != "$environment_name" ]]; then __rvm_become "$environment_name" || exit 1 fi -convert_to_shell \ No newline at end of file +convert_to_shell