[import_track] Fixed issue with find
This commit is contained in:
parent
74ec738b95
commit
1cc832d55e
1 changed files with 2 additions and 2 deletions
|
@ -18,11 +18,11 @@
|
|||
import_track() {
|
||||
local GIT_DIR="${1}"
|
||||
local TRACK="${2}"
|
||||
local DIR_NAME="$(dirname \"${TRACK}\")"
|
||||
local DIR_NAME="$(dirname "${TRACK}")"
|
||||
local SOURCE="FLAC"
|
||||
|
||||
# Cover image finder
|
||||
local coverList=($(find "${DIR_NAME}" -maxdepth 1 \( -name '*.jpg' -o -name '*.png' \) -printf '%p\t'))
|
||||
local coverList=($(find "${DIR_NAME}"/ -maxdepth 1 \( -name '*.jpg' -o -name '*.png' \) -printf '%p\t'))
|
||||
|
||||
# Metadata parsing
|
||||
local ARTIST=$(cut -d= -f2 <<< $(print_meta_flac ${TRACK} ARTIST))
|
||||
|
|
Loading…
Reference in a new issue