mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
Remove legacy online installer entrypoints, collapse migrations for 4.0, and move setup responsibilities into target-side system, hardware, and user commands.
17 lines
357 B
Bash
Executable File
17 lines
357 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Create a new Omarchy migration in the current source tree.
|
|
|
|
set -euo pipefail
|
|
|
|
cd "${OMARCHY_PATH:-$(pwd)}"
|
|
mkdir -p migrations
|
|
migration_file="migrations/$(git log -1 --format=%cd --date=unix).sh"
|
|
touch "$migration_file"
|
|
|
|
if [[ ${1:-} != "--no-edit" ]]; then
|
|
nvim "$migration_file"
|
|
fi
|
|
|
|
printf '%s\n' "$PWD/$migration_file"
|