about summary refs log tree commit diff
path: root/scripts/nix-push.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-11-20T15·44+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-11-20T15·44+0000
commit4213b8d8ec8cf478e43b0ec3dc4068e5e55f097a (patch)
tree2b95c8d933bae74c21d06ba7149d2ec1ab8924b0 /scripts/nix-push.in
parenteb86b6f5a5429075866eca40d3cc4b864e7499ae (diff)
* Urgh.
Diffstat (limited to 'scripts/nix-push.in')
-rw-r--r--scripts/nix-push.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in
index 8ac31d50165e..c7a0dc6687e4 100644
--- a/scripts/nix-push.in
+++ b/scripts/nix-push.in
@@ -16,8 +16,7 @@ my $curl = "@curl@ --fail --silent";
 my $extraCurlFlags = ${ENV{'CURL_FLAGS'}};
 $curl = "$curl $extraCurlFlags" if defined $extraCurlFlags;
 
-my $binDir = $ENV{"NIX_BIN_DIR"};
-$binDir = "@bindir@" unless defined $binDir;
+my $binDir = $ENV{"NIX_BIN_DIR"} || "@bindir@";
 
 my $dataDir = $ENV{"NIX_DATA_DIR"};
 $dataDir = "@datadir@" unless defined $dataDir;