diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-16 22:26:52 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-16 22:26:52 +0100 |
commit | 427f07ee9ec06573afcbba8dd5c9efda4399c9b2 (patch) | |
tree | 767314687cafb6635835cf0c2acf883786372bdd | |
parent | 24774c8c72888362b4b74304c34d18ca34de1fe5 (diff) | |
download | sbotools2-427f07ee9ec06573afcbba8dd5c9efda4399c9b2.tar.xz |
Short-circuit run() if cmd isn't given
-rwxr-xr-x | t/travis.t | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -25,6 +25,7 @@ sub run { @_ ); my $cmd = shift @{ $args{cmd} }; + return undef unless defined $cmd; my @cmd = ($^X, "-I$lib", "$path/$cmd", @{ $args{cmd} }); my $exit = $args{exit}; my ($output, $return) = capture_merged { |