Updated install.sh to actually do stuff

This commit is contained in:
wasabi
2025-05-30 17:21:51 -05:00
parent 5698e7108e
commit 0c766576d4

View File

@@ -10,8 +10,7 @@ unsupported_shell () {
install () { install () {
export SHELLPROFILE="$1" export SHELLPROFILE="$1"
if [ -d "$HOME/.steamtricks" ]; then if [ ! -d "$HOME/.steamtricks" ]; then
else
mkdir $HOME/.steamtricks mkdir $HOME/.steamtricks
fi fi
cp -r steamtricks/* $HOME/.steamtricks/ cp -r steamtricks/* $HOME/.steamtricks/
@@ -21,8 +20,10 @@ install () {
fi fi
if [ -z "$(echo $PATH | grep 'steamtricks')" ]; then if [ -z "$(echo $PATH | grep 'steamtricks')" ]; then
echo "Install completed! Please source your profile $SHELLPROFILE to load the changes!" echo 'export PATH="$PATH:~/.steamtricks/bin"'>>${SHELLPROFILE}
fi fi
echo "Install completed! Please source your profile $SHELLPROFILE to load the changes!"
} }
install_manager () { install_manager () {