Browse Source

img-chon.sh: Show help on invalid command

Frans Bergman 4 years ago
parent
commit
cac04dc2de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .scripts/img-chon.sh

+ 1 - 1
.scripts/img-chon.sh

@@ -133,7 +133,7 @@ case $1 in
         echo "Number of distinct tags: $($SQL "SELECT COUNT(DISTINCT tag) FROM image_tag;")"
         echo "Database size: $(du -h "$DATABASE" | awk '{ print $1 }')"
         ;;
-    "")
+    **)
         name="$(basename "$0")"
         echo -e "Usage:"
         echo -e "  $name init                Create a new database."