Commit 06fa4b4
committed
lib/bash.rb: allow passing custom returns to safe_grep
Bash.safe_grep hardcodes option returns to [0,1], which prevents
callers from providing broader exit code acceptance (e.g. 2 for
missing files). Update to conditionally set options[:returns]
only if it is not already provided by the caller.
Signed-off-by: Philip Li <philip.li@intel.com>1 parent 18d0296 commit 06fa4b4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments