From a624691b0deb8e865971f4a22bfa7604c38e9b96 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 29 Dec 2024 12:02:44 -0500 Subject: [PATCH] Fixes to the Slay the Spire installer. --- .install/Slay the Spire.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.install/Slay the Spire.sh b/.install/Slay the Spire.sh index b36887a..0350ed2 100644 --- a/.install/Slay the Spire.sh +++ b/.install/Slay the Spire.sh @@ -12,12 +12,12 @@ if ! [[ -f ~/Downloads/slay_the_spire_2020_12_15_8735c9fe3cc2280b76aa3ec47c9533 else DISPLAY="" find ~/Downloads -maxdepth 1 -type f -name 'slay_the_spire_2020_12_15_8735c9fe3cc2280b76aa3ec47c953352a7df1f65_43444.sh' -exec bash "{}" \; || - find ~/Desktop -maxdepth 1 -type f -name 'slay_the_spire_2020_12_15_8735c9fe3cc2280b76aa3ec47c953352a7df1f65_43444.sh' -exec bash "{}" \; + find ~/Desktop -maxdepth 1 -type f -name 'slay_the_spire_2020_12_15_8735c9fe3cc2280b76aa3ec47c953352a7df1f65_43444.sh' -exec bash "{}" \; if [[ $? -eq 0 ]]; then - ln -sf "${HOME}/GOG Games/Slay the Spire/game" "${installPath}/SlayTheSpire" || - { echo "Error creating link." - exit 1; } -else + ln -sf "${HOME}/GOG Games/Slay the Spire/game" "${installPath}/SlayTheSpire" || + { echo "Error creating link." + exit 1; } + else echo "Error installing game." exit 1 fi @@ -27,7 +27,7 @@ mkdir -p "${HOME}/.config/ModTheSpire" if [[ -f ~"/.config/ModTheSpire/mod_lists.json" ]]; then dialog --backtitle "Linux Game manager" \ --yesno "Existing mod_lists.json file found. Would you like to replace it?" -1 -1 --stdout && - cp -v .files/SlayTheSpire/mod_lists.json "${HOME}/.config/ModTheSpire/mod_lists.json" + cp -v .files/SlayTheSpire/mod_lists.json "${HOME}/.config/ModTheSpire/mod_lists.json" else cp -v .files/SlayTheSpire/mod_lists.json "${HOME}/.config/ModTheSpire/mod_lists.json" fi @@ -54,5 +54,3 @@ for x in "${!mods[@]}" ; do ln -sr "$HOME/.local/games/SlayTheSpire/steamapps/workshop/content/$appId/${mods[$x]}"/* "$HOME/.local/games/SlayTheSpire/mods/" fi done -launcherPath="$(readlink -f "$0")" -launcherPath="${launcherPath%/*}"