diff options
author | Theodore Ts'o <tytso@mit.edu> | 2021-07-03 12:02:47 -0400 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2021-07-04 18:06:46 +0800 |
commit | a9e50808a843ae5561163ac93b68a652038e3cea (patch) | |
tree | ab36c210f956c56efd185f9d5b3af50091bf283b /check | |
parent | c360cd10a1b883c7822d78f55fdfa5d8726212eb (diff) |
check: exit with exit code 1 after printing the usage message
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>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'check')
-rwxr-xr-x | check | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ examples: check -X .exclude -g auto check -E ~/.xfstests.exclude ' - exit 0 + exit 1 } get_sub_group_list() |