aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/update_hosts.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-28 13:54:24 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-28 13:54:24 +0100
commitc4a763d16484a51a0038e5cb5682d5bab0b74b56 (patch)
tree5c65e3182482dfe5daaa97243421ed573f5217eb /scripts/update_hosts.sh
parentsecrets.nix: Use correct paths to the email test dkim keys (diff)
downloadnixos-server-c4a763d16484a51a0038e5cb5682d5bab0b74b56.zip
scripts/update_hosts.sh: Make upstream independent
Diffstat (limited to '')
-rwxr-xr-xscripts/update_hosts.sh4
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"