diff options
Diffstat (limited to 'bpkg/archive.cxx')
-rw-r--r-- | bpkg/archive.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx index e3b5f8b..da381a4 100644 --- a/bpkg/archive.cxx +++ b/bpkg/archive.cxx @@ -68,14 +68,16 @@ namespace bpkg args.push_back (nullptr); - if (verb >= 2) - print_process (args); - try { + process_path pp (process::path_search (args[0])); + + if (verb >= 2) + print_process (args); + // If err is false, then redirect STDERR to STDOUT. // - return process (args.data (), 0, -1, (err ? 2 : 1)); + return process (pp, args.data (), 0, -1, (err ? 2 : 1)); } catch (const process_error& e) { |