diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-10-28 13:54:24 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-10-28 13:54:24 +0100 |
| commit | c4a763d16484a51a0038e5cb5682d5bab0b74b56 (patch) | |
| tree | 5c65e3182482dfe5daaa97243421ed573f5217eb /scripts/update_hosts.sh | |
| parent | secrets.nix: Use correct paths to the email test dkim keys (diff) | |
| download | nixos-server-c4a763d16484a51a0038e5cb5682d5bab0b74b56.zip | |
scripts/update_hosts.sh: Make upstream independent
Diffstat (limited to '')
| -rwxr-xr-x | scripts/update_hosts.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update_hosts.sh b/scripts/update_hosts.sh index 4f32722..5b84254 100755 --- a/scripts/update_hosts.sh +++ b/scripts/update_hosts.sh @@ -61,14 +61,14 @@ for host in $hosts; do fi tmp="$(mktemp -d -t "server_build_script_XXXXX")" - trap 'rm -r "$tmp"' EXIT + trap 'rm -rf "$tmp"' EXIT if [ "$direct" = true ]; then git archive --format=tar.gz HEAD | { cd "$tmp" tar -xz } else - git clone "git.foss-syndicate.org" --branch="$branch" "$tmp" + git clone "$(git remote get-url origin)" --branch="$branch" "$tmp" fi cd "$tmp" |
