diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-08-02 01:42:14 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-08-02 01:42:14 +0000 |
| commit | 3e139a0e702513f6e1145158b2695b43c8251b92 (patch) | |
| tree | 8f4840a86962b86eaf9eca70feab3a1124f504eb | |
| parent | 02926f70770ceb90cf382da2b54f888ba969f423 (diff) | |
fixed deploy scripts path resolution
| -rwxr-xr-x | nix/deploy.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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}" |
