summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-18 09:55:40 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-18 09:55:40 +0100
commitc08e3258cbada3f192c19349cd7d8afb62025c8f (patch)
tree334e4e5a2d2deb697d34dc4acadab7a856522825
parentc51225577b077401de0b5e79d8b288019e5bb44d (diff)
.gitcheck: exit 1 if unsupported argument given
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-x.gitcheck9
1 files changed, 6 insertions, 3 deletions
diff --git a/.gitcheck b/.gitcheck
index d2868b63..195b925a 100755
--- a/.gitcheck
+++ b/.gitcheck
@@ -10,10 +10,13 @@ main()
{
if [ $# -gt 0 ]; then
if [ "${1}" = "clean" ]; then
- clean
+ clean > /dev/null 2> /dev/null
+ else
+ printf "%s: Unsupported argument\n" $0
+ exit 1
fi
else
- set_placeholders
+ set_placeholders > /dev/null 2> /dev/null
fi
}
@@ -76,4 +79,4 @@ unset_placeholders()
fi
}
-main $@ > /dev/null 2> /dev/null
+main $@