From 02603d22f594e9bf2db6646e8864f3791f9acbaf Mon Sep 17 00:00:00 2001 From: charwrangler404 Date: Wed, 28 May 2025 21:49:47 -0500 Subject: [PATCH] Update webinstall.sh --- webinstall.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webinstall.sh b/webinstall.sh index a2ef479..0ec5dc6 100644 --- a/webinstall.sh +++ b/webinstall.sh @@ -1,9 +1,10 @@ #!/usr/bin/env bash -case "$(echo $SHELL | awk -F '/' '{print $NF}')" in +SHELLNAME=$(echo $SHELL | awk -F '/' '{print $NF}') +case "$SHELLNAME" in sh) echo "Shell not supported"; exit 1 ;; - bash | zsh) curl https://raw.githubusercontent.com/charwrangler404/steamtricks/refs/heads/main/multiple_install_manager.sh >> "${HOME}/.${1}rc"; echo "Installed to ${HOME}/.${1}rc" + bash | zsh) curl https://raw.githubusercontent.com/charwrangler404/steamtricks/refs/heads/main/multiple_install_manager.sh >> "${HOME}/.${SHELLNAME}rc"; echo "Installed to ${HOME}/.${SHELLNAME}rc" ;; *) echo "You will need to install this by manually adding it to either your /etc/profile for system-wide installation or to your shell's profile" ;;