fix(install): default ROOT to clone dir, not hardcoded personal path

Standalone `bash install.sh` (no env) used $HOME/Проекты/mnemazine — the
author's path. Default to the script's own location so a fresh clone in any
directory installs into itself.
This commit is contained in:
Зарубин Филипп
2026-06-19 19:44:27 +03:00
parent 39264f7179
commit 1a0a38d5bc
+2 -1
View File
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="${MNEMAZINE_ROOT:-$HOME/Проекты/mnemazine}"
# Default to where this script lives (the clone), not a hardcoded path.
ROOT="${MNEMAZINE_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
INBOX="${MNEMAZINE_INBOX:-$ROOT/inbox}"
VAULT="${MNEMAZINE_VAULT:-$ROOT/vault}"
REPORTS="${MNEMAZINE_REPORTS:-$ROOT/reports}"