mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-19 21:40:57 +00:00
fix(deck): Modify returned/accepted values of os-branch-select to something the steam client understands
This commit is contained in:
parent
6d2818cff7
commit
62e299c2b4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user