about summary refs log tree commit diff
path: root/scripts/nix-prefetch-url.in
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2006-08-05T00·31+0000
committerArmijn Hemel <armijn@gpl-violations.org>2006-08-05T00·31+0000
commitf1947cce9375745b63f7f0512fd1bd4a0f5c1639 (patch)
tree7ae39d529407990e4acd67d698860a5a3e140025 /scripts/nix-prefetch-url.in
parent1854f84e830a5282ae1ad1d0c85ed641af6bcf33 (diff)
prevent doing recursive chroots, by unsetting NIX_ROOT in the scripts.
Diffstat (limited to 'scripts/nix-prefetch-url.in')
-rw-r--r--scripts/nix-prefetch-url.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in
index 5f6ea4c0d37a..7d0a17163161 100644
--- a/scripts/nix-prefetch-url.in
+++ b/scripts/nix-prefetch-url.in
@@ -3,6 +3,9 @@
 url=$1
 expHash=$2
 
+# to prevent doing more than 1 chroot
+unset NIX_ROOT
+
 hashType=$NIX_HASH_ALGO
 if test -z "$hashType"; then
     hashType=md5