Updated readme.md, install.sh, and webinstall.sh

This commit is contained in:
Elia Farin
2025-05-30 15:49:58 -05:00
parent 09eb399f1e
commit 5b44cb290a
2 changed files with 25 additions and 7 deletions

View File

@@ -8,11 +8,25 @@ install_steamtricks () {
mkdir -p ~/.steamtricks && curl "$DOWNLOADURL" | tar -xvC ~/.steamtricks/ || echo "Could not install steamtricks"
echo "export STEAMTRICKS_PREFIX=\"$HOME/.steamtricks\"">>$SHELLPROFILE
echo 'export PATH="$PATH:$HOME/.winetricks/bin"'>>$SHELLPROFILE
echo "Installation complete! Please source your profile to apply changes"
}
install_steamtricks_sh () {
export $SHELLPROFILE="$HOME/.profile"
mkdir -p $HOME/.steamtricks && curl "$DOWNLOADURL" | tar -xvC $HOME/.steamtricks/ || echo "Could not install steamtricks"
echo "export STEAMTRICKS_PREFIX=\"$HOME/.steamtricks\"">>$SHELLPROFILE
echo 'export PATH="$PATH:$HOME/.winetricks/bin"'>>$SHELLPROFILE
echo "Installation complete! Please source your profile to apply changes"
}
if [ "$EUID" -eq 0 ]; then
echo "Please do not run this script as root"
exit 1
fi
SHELLNAME=$(echo $SHELL | awk -F '/' '{print $NF}')
case "$SHELLNAME" in
sh) echo "Shell not supported"; exit 1
sh) install_steamtricks_sh
;;
bash | zsh | yash) install_steamtricks "$SHELLNAME"
;;