From 66a7c0e3e7248c13ce2598441a7d1ead82fd6825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Fri, 18 Nov 2022 23:58:02 +0100 Subject: [PATCH] Check for existence of database at the start --- tag.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tag.sh b/tag.sh index d1cd0b3..b24ebdc 100755 --- a/tag.sh +++ b/tag.sh @@ -223,6 +223,8 @@ main() { exit 0 fi + [ ! -f "$DB_FILE" ] && fail "Database file \"$DB_FILE\" does not exist." + if [[ "$1" = "import" ]]; then shift add "path" "$@"