Files
steamtricks/install.sh
charwrangler404 491eb5d7b7 Update install.sh
2025-05-28 21:41:39 -05:00

24 lines
590 B
Bash

#!/usr/bin/env bash
install_manager () {
case "$1" in
sh) echo "Shell not supported"; exit 1
;;
bash | zsh) cat 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}')
;;
*) echo "Aborting with no change"; exit 1
;;
esac