Handle ~ in --db argument

This commit is contained in:
Lukáš Kucharczyk 2022-11-18 14:05:06 +01:00
parent e00766cce8
commit b483c72df7
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 1 additions and 1 deletions

2
tag.sh
View File

@ -21,7 +21,7 @@ SCRIPT_NAME=$(basename "$0")
DB_FILE="${PWD}/tags.db"
[ "${1:-}" = "--db" ] && DB_FILE="$2" && shift 2
[ "${1:-}" = "--db" ] && DB_FILE=$(realpath "${2/#~/$HOME}") && shift 2
DB_SCHEMA="${SCRIPT_DIR}/database.sql"