If folder already created, do not error.

This commit is contained in:
Jeroen De Meerleer 2019-03-16 15:12:42 +01:00
parent f4bf02fd11
commit b1f47c0b06

View File

@ -252,7 +252,7 @@ ConvertFiles() {
lame -b ${bitrate} $source/$line $temp/$line 1>/dev/null 2>/dev/null
VerboseOutput 2 "Converted: $line"
if [[ $convertart == true ]]; then
mkdir "$temp/$line-images/"
mkdir -p "$temp/$line-images/"
eyeD3 --write-images "$temp/$line-images/" "$temp/$line" 1>/dev/null 2>/dev/null
convert "$temp/$line-images/FRONT_COVER.*" -resize 200x200 "$temp/$line-images/FRONT_COVER.jpg" 1>/dev/null 2>/dev/null
eyeD3 --remove-all-images "$temp/$line" 1>/dev/null 2>/dev/null