Files
omarchycn/bin/omarchy-migrate
T
Ryan Hughes 75cb4f7195 Make setup ISO-only
Remove legacy online installer entrypoints, collapse migrations for 4.0, and move setup responsibilities into target-side system, hardware, and user commands.
2026-06-04 18:37:32 -04:00

20 lines
452 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Run pending Omarchy migrations for the current user.
set -euo pipefail
STATE_DIR="$HOME/.local/state/omarchy/migrations"
mkdir -p "$STATE_DIR"
for file in "$OMARCHY_PATH"/migrations/*.sh; do
[[ -f $file ]] || continue
filename=$(basename "$file")
if [[ ! -f $STATE_DIR/$filename ]]; then
echo -e "\e[32m\nRunning migration (${filename%.sh})\e[0m"
bash "$file"
touch "$STATE_DIR/$filename"
fi
done