[import_dir] Fixing sorting issues with find

This commit is contained in:
ayakael 2018-05-18 23:16:59 -07:00
parent 07df84dc56
commit 04b8691fac
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -17,7 +17,7 @@ import_dir() {
local TRACK_DIR="${2}" local TRACK_DIR="${2}"
local SOURCE=FLAC local SOURCE=FLAC
local trackList=($(find ${TRACK_DIR} -maxdepth 1 -name '*.flac' -printf '%p\t')) local trackList=($(find ${TRACK_DIR} -maxdepth 1 -name '*.flac' -printf '%p\n' | sort))
# Join trackList # Join trackList
_msg EXEC "Generating joined image" _msg EXEC "Generating joined image"