Handle location of SQL file more robustly
This commit is contained in:
parent
353b86af65
commit
f22c4ce044
3
tag.sh
3
tag.sh
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue