From 61cd6685f419ec2318e7d8c1e1010009626c3f0a Mon Sep 17 00:00:00 2001 From: ajasibley <125228925+ajasibley@users.noreply.github.com> Date: Thu, 25 May 2023 02:13:01 -0700 Subject: [PATCH] Fixed syntax error in update_path.sh --- scripts/update_path.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/update_path.sh b/scripts/update_path.sh index 81b100e22..796a8061f 100644 --- a/scripts/update_path.sh +++ b/scripts/update_path.sh @@ -1,19 +1,19 @@ #!/bin/bash # Get the current shell name -current_shell="$(basename ${builtins.getEnv "SHELL"})" +current_shell="$(basename "$SHELL")" # Update the corresponding configuration file based on the current shell if [[ "$current_shell" == "bash" ]]; then - cat >> "${builtins.getEnv "HOME"}/.bashrc" <> "${HOME}/.bashrc" <> "${builtins.getEnv "HOME"}/.zshrc" <> "${HOME}/.zshrc" <