Skip to content

Commit f2577ef

Browse files
committed
Fix path detection for partial failures
Return stdout on exception when suppressException is true. When running `find` in a directory like `/etc/`, find may return a non-zero error code because of permissions on unrelated subdirectories but still find the files we're looking for.
1 parent d8192ab commit f2577ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ozwpaths.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function doScript(script, suppressException) {
2929
} catch(e) {
3030
//console.log('---> ' + e.toString());
3131
if (!suppressException) throw e;
32+
if (e.stdout) return e.stdout.toString();
3233
}
3334
}
3435

0 commit comments

Comments
 (0)