mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Respect rc too
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# Set the branch for Omarchy's git repository.
|
# Set the branch for Omarchy's git repository.
|
||||||
|
|
||||||
if (($# == 0)); then
|
if (($# == 0)); then
|
||||||
echo "Usage: omarchy-branch-set [master|dev]"
|
echo "Usage: omarchy-branch-set [master|rc|dev]"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
branch="$1"
|
branch="$1"
|
||||||
@@ -11,6 +11,7 @@ fi
|
|||||||
|
|
||||||
case "$branch" in
|
case "$branch" in
|
||||||
"master") git -C $OMARCHY_PATH switch master ;;
|
"master") git -C $OMARCHY_PATH switch master ;;
|
||||||
|
"rc") git -C $OMARCHY_PATH switch rc ;;
|
||||||
"dev") git -C $OMARCHY_PATH switch dev ;;
|
"dev") git -C $OMARCHY_PATH switch dev ;;
|
||||||
*) echo "Unknown branch: $branch"; exit 1; ;;
|
*) echo "Unknown branch: $branch"; exit 1; ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user