diff --git a/workflow/hpr-process_episode.bash b/workflow/hpr-process_episode.bash index b5ba1ae..6ff46ed 100755 --- a/workflow/hpr-process_episode.bash +++ b/workflow/hpr-process_episode.bash @@ -1003,7 +1003,7 @@ function media_checks() { fi fi - media=$( find "${working_dir}/" -maxdepth 1 -type f -exec file --mime-type {} \; | grep -Ei ' audio/| video/' | awk -F ': ' '{print $1}' ) + media=$( find "${working_dir}/" -maxdepth 1 -type f -exec file --mime-type {} \; | grep -Ei ' audio/| video/' | awk -F ': ' '{print $1}' | sort ) if [ -z "${media}" ] then find "${working_dir}/" -type f