mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
19 lines
309 B
Bash
Executable File
19 lines
309 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run a named hook, like post-update (available in ~/.config/omarchy/hooks/post-update).
|
|
|
|
set -e
|
|
|
|
if [[ $# -lt 1 ]]; then
|
|
echo "Usage: omarchy-hook [name] [args...]"
|
|
exit 1
|
|
fi
|
|
|
|
HOOK=$1
|
|
HOOK_PATH="$HOME/.config/omarchy/hooks/$1"
|
|
shift
|
|
|
|
if [[ -f $HOOK_PATH ]]; then
|
|
bash "$HOOK_PATH" "$@"
|
|
fi
|