From 820923fd34cad3a069ff86e5c11ef4c2912f6e50 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Thu, 22 Dec 2022 16:53:15 +0800 Subject: [PATCH] Show usage if parameters not sastified --- backup-if-change.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/backup-if-change.sh b/backup-if-change.sh index 32a6138..e79b3f2 100755 --- a/backup-if-change.sh +++ b/backup-if-change.sh @@ -79,6 +79,7 @@ function main() if [ -z "$FILE" -o -z "$TARGET_DIR" ] then echo "option(s) --file or --target-dir is unspecified." + show_usage exit 1 fi hash_prev=""