summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrainDoctor <11465594+TrainDoctor@users.noreply.github.com>2023-05-30 18:46:17 -0700
committerGitHub <noreply@github.com>2023-05-30 18:46:17 -0700
commite5b428711a18a2f38f853e917c20d15ca2635b36 (patch)
treec8e02d669dfb4e3a88b44782e41ad5fd3c5eb858
parent996722ca7d3df70691dc6f6464a8e51d71715cf4 (diff)
parentea515cde5df35f7076cf8ec5eb22422ce73c9902 (diff)
downloaddecky-installer-e5b428711a18a2f38f853e917c20d15ca2635b36.tar.gz
decky-installer-e5b428711a18a2f38f853e917c20d15ca2635b36.zip
Merge pull request #11 from ggppjj/ggppjj-patch-1-regexv1.6.2
Ggppjj patch 1 regex
-rw-r--r--gui/decky_installer.desktop2
-rw-r--r--gui/user_install_script.sh9
2 files changed, 4 insertions, 7 deletions
diff --git a/gui/decky_installer.desktop b/gui/decky_installer.desktop
index 2f48547..3fa80ef 100644
--- a/gui/decky_installer.desktop
+++ b/gui/decky_installer.desktop
@@ -1,7 +1,7 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Install Decky
-Exec=sh -c 'if curl -S -s -L -O --output-dir /tmp/ --connect-timeout 60 https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/user_install_script.sh; then bash /tmp/user_install_script.sh; else echo "Something went wrong, please report this if it is a bug"; read; fi'
+Exec=sh -c 'rm /tmp/user_install_script.sh; if curl -S -s -L -O --output-dir /tmp/ --connect-timeout 60 https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/user_install_script.sh; then bash /tmp/user_install_script.sh; else echo "Something went wrong, please report this if it is a bug"; read; fi'
Icon=steamdeck-gaming-return
Terminal=true
Type=Application
diff --git a/gui/user_install_script.sh b/gui/user_install_script.sh
index 5441984..6a38379 100644
--- a/gui/user_install_script.sh
+++ b/gui/user_install_script.sh
@@ -119,13 +119,10 @@ if [[ "$OPTION" == "uninstall decky loader" || "$OPTION" == "wipe decky loader"
exit 1
fi
-# otherwise install decky loader
-
-if [[ "$OPTION" == "release" || "$OPTION" == "update to release" ]]; then
- BRANCH="release"
-fi
-if [[ "$OPTION" == "prerelease" || "$OPTION" == "update to prerelease" ]]; then
+if [[ "$OPTION" =~ "pre" ]]; then
BRANCH="prerelease"
+else
+ BRANCH="release"
fi
(