From ffa1c61cd50a512685b44c55261c1539890482f4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Aug 2007 13:15:59 +0000 Subject: [PATCH] * Fix the tests. --- scripts/nix-pull.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in index 378d9a363..333a1df87 100644 --- a/scripts/nix-pull.in +++ b/scripts/nix-pull.in @@ -35,8 +35,9 @@ sub downloadFile { my $url = shift; $ENV{"PRINT_PATH"} = 1; $ENV{"QUIET"} = 1; - my ($dummy, $path) = `@bindir@/nix-prefetch-url '$url'`; + my ($dummy, $path) = `$binDir/nix-prefetch-url '$url'`; chomp $path; + die "nix-prefetch-url did not return a path" unless defined $path; return $path; }