Fix indentation

This commit is contained in:
David Heinemeier Hansson 2025-08-10 20:09:03 +02:00
parent 7e4da388bf
commit 610ec4a398

View File

@ -7,23 +7,23 @@ COMMAND="$1"
STATE_NAME="$2"
case "$COMMAND" in
set)
if [[ -z "$STATE_NAME" ]]; then
echo "Usage: omarchy-state set <state-name>" >&2
exit 1
fi
touch "$STATE_DIR/$STATE_NAME"
;;
clear)
if [[ -z "$STATE_NAME" ]]; then
echo "Usage: omarchy-state clear <state-name-or-pattern>" >&2
exit 1
fi
# Use find with -maxdepth 1 to match files in STATE_DIR
find "$STATE_DIR" -maxdepth 1 -type f -name "$STATE_NAME" -delete
;;
*)
echo "Usage: omarchy-state <set|clear> <state-name-or-pattern>" >&2
exit 1
;;
set)
if [[ -z "$STATE_NAME" ]]; then
echo "Usage: omarchy-state set <state-name>" >&2
exit 1
fi
touch "$STATE_DIR/$STATE_NAME"
;;
clear)
if [[ -z "$STATE_NAME" ]]; then
echo "Usage: omarchy-state clear <state-name-or-pattern>" >&2
exit 1
fi
# Use find with -maxdepth 1 to match files in STATE_DIR
find "$STATE_DIR" -maxdepth 1 -type f -name "$STATE_NAME" -delete
;;
*)
echo "Usage: omarchy-state <set|clear> <state-name-or-pattern>" >&2
exit 1
;;
esac