mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-21 09:39:49 +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
|
fi
|
||||||
|
|
||||||
case "$branch" in
|
case "$branch" in
|
||||||
"latest" | "testing" | "unstable")
|
"latest")
|
||||||
echo "$branch"
|
echo rel
|
||||||
exit 0
|
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
|
# 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.
|
# path should decide how to handle it.
|
||||||
@ -25,19 +32,25 @@ if [[ $# -eq 1 ]]; then
|
|||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"-l")
|
"-l")
|
||||||
echo latest
|
echo rel
|
||||||
echo testing
|
echo rc
|
||||||
echo unstable
|
echo beta
|
||||||
|
echo bc
|
||||||
|
echo main
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
"latest" | "testing")
|
"rel" | "latest")
|
||||||
/usr/bin/pkexec /usr/libexec/ublue-update-rebase "$1"
|
/usr/bin/pkexec /usr/libexec/ublue-update-rebase "latest"
|
||||||
exit 0
|
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 "The unstable branch has a high risk of breaking."
|
||||||
echo "Do NOT use it unless you know what you are doing."
|
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
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user