Explorar o código

Fixed issue w/ processing

Samuel W. Flint %!s(int64=10) %!d(string=hai) anos
pai
achega
ea76018cc2
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      convert-to-ogg

+ 3 - 3
convert-to-ogg

@@ -3,9 +3,9 @@
 for song in *.m4a ;
 do
     NEW=~/Music/itunes/`basename -- "$song" .m4a`.ogg
-    if [ -ne $NEW ] ; then
-        faad -w -- "$song" | oggenc -o "${NEW}" -
+    if [[ -e $NEW ]] ; then
+	echo "Skipping ${NEW}, already converted."
     else
-        echo "Skipping ${NEW}, already converted."
+        faad -w -- "$song" | oggenc -o "${NEW}" -
     fi
 done