Handle location of SQL file more robustly

This commit is contained in:
Lukáš Kucharczyk 2022-11-15 22:03:38 +01:00
parent 353b86af65
commit f22c4ce044
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 2 additions and 1 deletions

3
tag.sh
View File

@ -17,8 +17,9 @@ set -ueo pipefail
# TODO: when tagging, allow more than one tag
# FIXME: adding tags doesn't work
SCRIPT_DIR=$(dirname $(readlink "$0"))
DB_FILE="tags.db"
DB_SCHEMA="database.sql"
DB_SCHEMA="${SCRIPT_DIR}/database.sql"
declare -A FILTERS
FILTERS[video]="avi|flv|mkv|mov|mp4|mpg|ogv|webm|wmv"