Show usage if parameters not sastified

This commit is contained in:
leafee98 2022-12-22 16:53:15 +08:00
parent f148d165f4
commit 820923fd34

View file

@ -79,6 +79,7 @@ function main()
if [ -z "$FILE" -o -z "$TARGET_DIR" ] if [ -z "$FILE" -o -z "$TARGET_DIR" ]
then then
echo "option(s) --file or --target-dir is unspecified." echo "option(s) --file or --target-dir is unspecified."
show_usage
exit 1 exit 1
fi fi
hash_prev="" hash_prev=""