Files
omarchy/bin/omarchy-channel-set
2025-12-14 12:24:20 -08:00

22 lines
522 B
Bash
Executable File

#!/bin/bash
if (($# == 0)); then
echo "Usage: omarchy-channel-set [stable|edge|dev]"
exit 1
else
channel="$1"
fi
case "$channel" in
"stable") omarchy-branch-set "master" && omarchy-refresh-pacman "stable" ;;
"edge") omarchy-branch-set "master" && omarchy-refresh-pacman "edge" ;;
"dev") omarchy-branch-set "dev" && omarchy-refresh-pacman "edge" ;;
*) echo "Unknown channel: $channel"; exit 1; ;;
esac
# Run any new migrations
omarchy-migrate
# Offer a reboot if a new kernel was installed
omarchy-update-restart