Browse Source

Fixed issue

Samuel W. Flint 8 years ago
parent
commit
ed7c4a0767
1 changed files with 2 additions and 2 deletions
  1. 2 2
      convert-directory-to-ogv

+ 2 - 2
convert-directory-to-ogv

@@ -2,8 +2,8 @@
 
 for VIDEO in *.mp4 ;
 do
-    NEW=`basename -- "$song" .mp4`.ogv
-    if [[ -e $NEW ]] ; then
+    NEW=`basename -- "${VIDEO}" .mp4`.ogv
+    if [[ -e "${NEW}" ]] ; then
 	echo "Skipping ${NEW}, already converted."
     else
         ffmpeg -i "${VIDEO}" "${NEW}"