Skip to contentSkip to conversation

check: exit with exit code 1 after printing the usage message

PATCH New Theodore Ts'o 1 participant 1 message Jul 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
check +1 -1
index c2b8967a..d8252a8b 100755
@@ -116,7 +116,7 @@ examples:
  check -X .exclude -g auto
  check -E ~/.xfstests.exclude
 '
-	    exit 0
+	    exit 1
 }
 
 get_sub_group_list()
Signature · 1 line
2.31.0