summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2015-08-22 19:32:17 +0200
committerNiels Thykier <niels@thykier.net>2015-08-22 19:35:30 +0200
commitee516f3226ddff2e8a7c6cfd3004af2ac7a07c8c (patch)
treee55c29e93d280b25163472cdfa41300d23554448
parenta5c00fcffdca6e97556ef03477c52fe307fb1f5d (diff)
downloaddebhelper-ee516f3226ddff2e8a7c6cfd3004af2ac7a07c8c.tar.gz
dh: Fix bug with calling optional commands
Signed-off-by: Niels Thykier <niels@thykier.net>
-rwxr-xr-xdh4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh b/dh
index e86a2a14..4cba2260 100755
--- a/dh
+++ b/dh
@@ -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 {