From 3e139a0e702513f6e1145158b2695b43c8251b92 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Sat, 1 Aug 2026 21:42:14 -0400 Subject: fixed deploy scripts path resolution --- nix/deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/deploy.sh b/nix/deploy.sh index d3ad649..4459aab 100755 --- a/nix/deploy.sh +++ b/nix/deploy.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash set -euo pipefail +# Resolve paths relative to this script, not the caller's CWD +cd -- "$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")" + HOST="$1" FLAKE=".#${HOST}" KEY_DIR="./host-keys/${HOST}" -- cgit v1.2.3