summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@parabola.nu>2024-02-21 13:09:57 -0700
committerLuke T. Shumaker <lukeshu@parabola.nu>2024-02-21 13:23:54 -0700
commit9f7e53cfbda7957c07965859efedf933d929eabd (patch)
treed5e46fc03468dd9ff7a8c8d37ce118ad30d32683 /src
parenta623a620f68ba19750fc4feba34d1d2db8cd08dc (diff)
test: pkgbuild-check-nonfree.bats: Get stricter about exit codes
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pkgbuild-check-nonfree8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pkgbuild-check-nonfree b/src/pkgbuild-check-nonfree
index ccc846b..6215f36 100755
--- a/src/pkgbuild-check-nonfree
+++ b/src/pkgbuild-check-nonfree
@@ -5,7 +5,7 @@
# Copyright (C) 2011 Joseph Graham (Xylon) <joe@t67.eu>
# Copyright (C) 2010-2011 Joshua Ismael Haase Hernández (xihh) <hahj87@gmail.com>
# Copyright (C) 2010-2012 Nicolás Reynolds <fauno@parabola.nu>
-# Copyright (C) 2012-2013, 2017 Luke Shumaker <lukeshu@parabola.nu>
+# Copyright (C) 2012-2013, 2017, 2024 Luke Shumaker <lukeshu@parabola.nu>
#
# License: GNU GPLv3+
#
@@ -57,7 +57,11 @@ usage() {
echo
flag '-h' 'Show this message'
}
-# Make sure these match pkgbuild-summarize-nonfree
+
+# Make sure these match:
+# - the usage() text above
+# - pkgbuild-summarize-nonfree
+# - pkgbuild-check-nonfree.bats
declare -ri _E_OK=0
declare -ri _E_ERROR=1
declare -ri _E_LIC_UNKNOWN=2