Updated readme.md, install.sh, and webinstall.sh
This commit is contained in:
@@ -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"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user