From 62e299c2b4e56a83a25154cc9f07c62f5126703c Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Fri, 10 Nov 2023 17:18:57 -0800 Subject: [PATCH] fix(deck): Modify returned/accepted values of os-branch-select to something the steam client understands --- .../deck/shared/usr/libexec/os-branch-select | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/system_files/deck/shared/usr/libexec/os-branch-select b/system_files/deck/shared/usr/libexec/os-branch-select index 3a7df521..5843481b 100755 --- a/system_files/deck/shared/usr/libexec/os-branch-select +++ b/system_files/deck/shared/usr/libexec/os-branch-select @@ -11,10 +11,17 @@ if [[ $# -eq 1 ]]; then fi case "$branch" in - "latest" | "testing" | "unstable") - echo "$branch" + "latest") + echo rel exit 0 ;; + "testing") + echo rc + exit 0 + ;; + "unstable") + echo main + exit 0 *) # This can happen on CI builds or when downgrading from a newer build that knows of more branches. The update # path should decide how to handle it. @@ -25,19 +32,25 @@ if [[ $# -eq 1 ]]; then esac ;; "-l") - echo latest - echo testing - echo unstable + echo rel + echo rc + echo beta + echo bc + echo main exit 0 ;; - "latest" | "testing") - /usr/bin/pkexec /usr/libexec/ublue-update-rebase "$1" + "rel" | "latest") + /usr/bin/pkexec /usr/libexec/ublue-update-rebase "latest" exit 0 ;; - "unstable") + "rc" | "beta" | "testing") + /usr/bin/pkexec /usr/libexec/ublue-update-rebase "testing" + exit 0 + ;; + "bc" | "main" | "unstable") echo "The unstable branch has a high risk of breaking." echo "Do NOT use it unless you know what you are doing." - /usr/bin/pkexec /usr/libexec/ublue-update-rebase "$1" + /usr/bin/pkexec /usr/libexec/ublue-update-rebase "unstable" exit 0 ;; esac