From 83235fb96bd2a426c5d40ce2ad1ccc18049b91bd Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 18 May 2023 09:25:25 +0100 Subject: .gitcheck: check argv when running gitcheck-clean Signed-off-by: Leah Rowe --- .gitcheck | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.gitcheck') 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 -- cgit v1.2.1