Compare commits
2 Commits
e00766cce8
...
69951be543
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | 69951be543 | |
Lukáš Kucharczyk | b483c72df7 |
4
tag.sh
4
tag.sh
|
@ -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"
|
||||
|
@ -173,7 +173,7 @@ add_hash() {
|
|||
|
||||
add_path_auto() {
|
||||
# $REGEX $FOLDER
|
||||
find "${2}" -type f -regextype posix-extended -iregex "$1" -exec "$0" import "{}" +
|
||||
find "${2}" -type f -regextype posix-extended -iregex "$1" -exec "$0" --db "$DB_FILE" import "{}" +
|
||||
}
|
||||
|
||||
tag_exists_in_db() {
|
||||
|
|
Loading…
Reference in New Issue