diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-05T12·19+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-05T12·19+0200 |
commit | deb8668a0eb6b51a791e48942e6c916a2fe1486c (patch) | |
tree | 30c213498b7a49c1e8f69e0d0d22bf23f67a9122 /scripts | |
parent | 1f795f9f44607cc5bec70d1300150bfefcef2aae (diff) |
nix-shell: Fix uninitialized value warning
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/nix-build.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 19de6feb6080..5745a1e06e48 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -44,7 +44,7 @@ $SIG{'INT'} = sub { exit 1 }; # Heuristic to see if we're invoked as a shebang script, namely, if we # have a single argument, it's the name of an executable file, and it # starts with "#!". -if ($runEnv && $ARGV[0] !~ /nix-shell/) { +if ($runEnv && defined $ARGV[0] && $ARGV[0] !~ /nix-shell/) { $script = $ARGV[0]; if (-f $script && -x $script) { open SCRIPT, "<$script" or die "$0: cannot open ‘$script’: $!\n"; |