Check for existence of database at the start

This commit is contained in:
Lukáš Kucharczyk 2022-11-18 23:58:02 +01:00
parent 69951be543
commit 66a7c0e3e7
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 2 additions and 0 deletions

2
tag.sh
View File

@ -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" "$@"