diff --git a/lib/commands/install.sh b/lib/commands/install.sh index a7e5ccd0..91b49d68 100644 --- a/lib/commands/install.sh +++ b/lib/commands/install.sh @@ -6,7 +6,7 @@ handle_failure() { handle_cancel() { local install_path="$1" - echo -e "\nreceived sigint, cleaning up" + echo -e "\\nreceived sigint, cleaning up" handle_failure "$install_path" } diff --git a/lib/commands/reshim.sh b/lib/commands/reshim.sh index e759b3e2..02f1bc74 100644 --- a/lib/commands/reshim.sh +++ b/lib/commands/reshim.sh @@ -58,7 +58,7 @@ write_shim_script() { cp "$plugin_shims_path/$executable_name" "$shim_path" elif [ -f "$shim_path" ]; then if ! grep "# asdf-plugin-version: $version" "$shim_path" > /dev/null; then - sed -i.bak -e "s/\(asdf-plugin: $plugin_name\)/\1\\"$'\n'"# asdf-plugin-version: $version/" "$shim_path" + sed -i.bak -e "s/\\(asdf-plugin: $plugin_name\\)/\\1\\"$'\n'"# asdf-plugin-version: $version/" "$shim_path" rm "$shim_path".bak fi else diff --git a/lib/utils.sh b/lib/utils.sh index 6cae48da..536c16ca 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -261,7 +261,7 @@ get_asdf_config_value_from_file() { fi local result - result=$(grep -E "^\s*$key\s*=" "$config_path" | awk -F '=' '{ gsub(/ /, "", $2); print $2 }') + result=$(grep -E "^\\s*$key\\s*=" "$config_path" | awk -F '=' '{ gsub(/ /, "", $2); print $2 }') if [ -n "$result" ]; then echo "$result" fi