Message ID | 20210703160247.2558002-1-tytso@mit.edu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | check: exit with exit code 1 after printing the usage message | expand |
diff --git a/check b/check index c2b8967a..d8252a8b 100755 --- a/check +++ b/check @@ -116,7 +116,7 @@ examples: check -X .exclude -g auto check -E ~/.xfstests.exclude ' - exit 0 + exit 1 } get_sub_group_list()
If check is passed an invalid command line option, exit with a non-zero exit code so that a script calling check can detect the failure. The check script already performs an "exit 1" if a valid option has an invalid argument, so this is consistent with existing practice. Signed-off-by: Theodore Ts'o <tytso@mit.edu> --- check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)