File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments