summaryrefslogtreecommitdiff
path: root/.gitcheck
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-18 09:25:25 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-18 09:25:25 +0100
commit83235fb96bd2a426c5d40ce2ad1ccc18049b91bd (patch)
tree4b46957f008756a004c7ed284dfdcdd6d9d421fd /.gitcheck
parent6ce77652c6bbb2b2e93f62e21b4ed96c68bd3e74 (diff)
.gitcheck: check argv when running gitcheck-clean
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to '.gitcheck')
-rwxr-xr-x.gitcheck6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitcheck b/.gitcheck
index c73c6b16..6dfdb362 100755
--- a/.gitcheck
+++ b/.gitcheck
@@ -21,8 +21,10 @@ Clean(){
}
Run(){
-if [ "${1}" = "clean" ]; then
- Clean
+if [ $# -gt 0 ]; then
+ if [ "${1}" = "clean" ]; then
+ Clean
+ fi
else
Set_placeholder