From 1a0a38d5bc3cf8c21ac3c67464744ce75c82fdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D1=80=D1=83=D0=B1=D0=B8=D0=BD=20=D0=A4=D0=B8?= =?UTF-8?q?=D0=BB=D0=B8=D0=BF=D0=BF?= <289370046+zarubinphil@users.noreply.github.com> Date: Fri, 19 Jun 2026 19:44:27 +0300 Subject: [PATCH] fix(install): default ROOT to clone dir, not hardcoded personal path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 812402e..78f0235 100755 --- a/install.sh +++ b/install.sh @@ -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}"