Skip to content

Commit a810608

Browse files
committed
Setup helpers to change branch and channel
1 parent a996438 commit a810608

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

bin/omarchy-branch-set

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
if (($# == 0)); then
4+
echo "Usage: omarchy-channel-set [master|dev]"
5+
exit 1
6+
else
7+
branch="$1"
8+
fi
9+
10+
case "$branch" in
11+
"master") git -C $OMARCHY_PATH switch master ;;
12+
"dev") git -C $OMARCHY_PATH switch dev ;;
13+
*) echo "Unknown branch: $branch"; exit 1; ;;
14+
esac

bin/omarchy-channel-set

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
if (($# == 0)); then
4+
echo "Usage: omarchy-channel-set [stable|edge|dev]"
5+
exit 1
6+
else
7+
channel="$1"
8+
fi
9+
10+
case "$channel" in
11+
"stable") omarchy-branch-set "master" && omarchy-refresh-pacman "stable" ;;
12+
"edge") omarchy-branch-set "edge" && omarchy-refresh-pacman "stable" ;;
13+
"dev") omarchy-branch-set "dev" && omarchy-refresh-pacman "edge" ;;
14+
*) echo "Unknown channel: $channel"; exit 1; ;;
15+
esac

0 commit comments

Comments
 (0)