Skip to content
Browse files

Make convert_flacdir be more verbose on failure.

  • Loading branch information...
1 parent 11581fe commit 09ac5513d2e96cb36563c5e9543094f78fe13117 @antifuchs committed Mar 10, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 convert_flacdir
View
7 convert_flacdir
@@ -14,5 +14,8 @@ cd "$FLACDIR"
for flacfile in **/*.flac ; do
MP3FILE="$MP3DIR/$(dirname "$flacfile")/$(basename "$flacfile" .flac).mp3"
mkdir -p "$(dirname "$MP3FILE")"
- "$PREFIX/flac2mp3.py" "$flacfile" "$MP3FILE"
-done
+ if ! "$PREFIX/flac2mp3.py" "$flacfile" "$MP3FILE" ; then
+ echo "Couldn't convert $flacfile"
+ exit 1
+ fi
+done

0 comments on commit 09ac551

Please sign in to comment.
Something went wrong with that request. Please try again.