Skip to content

Commit

Permalink
fix(deck): Modify returned/accepted values of os-branch-select to som…
Browse files Browse the repository at this point in the history
…ething the steam client understands
  • Loading branch information
KyleGospo committed Nov 11, 2023
1 parent 6d2818c commit 62e299c
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions system_files/deck/shared/usr/libexec/os-branch-select
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
;;
"rel" | "latest")
/usr/bin/pkexec /usr/libexec/ublue-update-rebase "latest"
exit 0
;;
"latest" | "testing")
/usr/bin/pkexec /usr/libexec/ublue-update-rebase "$1"
"rc" | "beta" | "testing")
/usr/bin/pkexec /usr/libexec/ublue-update-rebase "testing"
exit 0
;;
"unstable")
"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
Expand Down

0 comments on commit 62e299c

Please sign in to comment.