#!/bin/bash
# omarchy:summary=Pin pacman to a single mirror
# omarchy:args=<mirror-id>
# omarchy:examples=omarchycn mirror pin tuna
# omarchy:requires-sudo=true

set -euo pipefail

exec omarchy-cn-mirror-apply "${1:?usage: omarchycn mirror pin <mirror-id>}"
