summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2021-07-03 12:02:47 -0400
committerEryu Guan <guaneryu@gmail.com>2021-07-04 18:06:46 +0800
commita9e50808a843ae5561163ac93b68a652038e3cea (patch)
treeab36c210f956c56efd185f9d5b3af50091bf283b /check
parentc360cd10a1b883c7822d78f55fdfa5d8726212eb (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-xcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/check b/check
index 3dab7630..de8104d0 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()