diff options
author | Niels Thykier <niels@thykier.net> | 2015-08-22 19:32:17 +0200 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-08-22 19:35:30 +0200 |
commit | ee516f3226ddff2e8a7c6cfd3004af2ac7a07c8c (patch) | |
tree | e55c29e93d280b25163472cdfa41300d23554448 | |
parent | a5c00fcffdca6e97556ef03477c52fe307fb1f5d (diff) | |
download | debhelper-ee516f3226ddff2e8a7c6cfd3004af2ac7a07c8c.tar.gz |
dh: Fix bug with calling optional commands
Signed-off-by: Niels Thykier <niels@thykier.net>
-rwxr-xr-x | dh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -972,10 +972,10 @@ sub optional_command { foreach my $dir (split(':', $ENV{'PATH'})) { if (open(my $h, '<', "$dir/$command")) { close($h); - return 1; + return ($command); } } - return 0; + return; } sub extract_skipinfo { |