From 47455b83afb9aa9d17bcb078995cf2dfb5510c05 Mon Sep 17 00:00:00 2001 From: charwrangler404 Date: Wed, 28 May 2025 21:47:59 -0500 Subject: [PATCH] Update webinstall.sh --- webinstall.sh | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/webinstall.sh b/webinstall.sh index 4bce979..a2ef479 100644 --- a/webinstall.sh +++ b/webinstall.sh @@ -1,23 +1,10 @@ #!/usr/bin/env bash -install_manager () { - case "$1" 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 "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" - ;; - esac -} - -echo "Would you like to install the multiple-install game manager?" -echo -n "[y/N]: " -read ANS - -case "$ANS" in - y* | Y* ) install_manager $(echo $SHELL | awk -F "/" '{print $NF}') +case "$(echo $SHELL | awk -F '/' '{print $NF}')" in + sh) echo "Shell not supported"; exit 1 ;; - *) echo "Aborting with no change"; 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" + ;; + *) 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" ;; esac