Add one-word Mnemazine entrypoint

This commit is contained in:
Зарубин Филипп
2026-06-23 18:32:56 +03:00
parent 4c5ed5f8f5
commit 419482c6ee
11 changed files with 93 additions and 28 deletions
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
SOURCE="${BASH_SOURCE[0]}"
while [ -L "$SOURCE" ]; do
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
done
ROOT="${MNEMAZINE_ROOT:-$(cd -P "$(dirname "$SOURCE")/.." && pwd)}"
cd "$ROOT"
exec npm start -- "$@"