mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
nix-shell: Fix uninitialized value warning
This commit is contained in:
parent
1f795f9f44
commit
deb8668a0e
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue