diff options
Diffstat (limited to 'scripts/nix-push.in')
-rw-r--r-- | scripts/nix-push.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in index 8ac31d501..c7a0dc668 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; |