aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/nix-pull.in3
1 files changed, 2 insertions, 1 deletions
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;
}