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:
+2
-1
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user