Fix quotes in bash scripts

This commit is contained in:
Varun Patil 2020-05-07 20:09:56 +05:30
parent 84e35cbac5
commit 1bc4b5e881
2 changed files with 11 additions and 11 deletions

View File

@ -7,11 +7,11 @@ do
filename="${file%.*}"
echo "MIDI $filename"
timidity $file -o $filename.ogg -Ov
rm $file
timidity "$file" -o "$filename.ogg" -Ov
rm "$file"
ffmpeg -i $filename.ogg -c:a libvorbis -qscale:a 0 CONV/$filename.ogg
rm $filename.ogg
ffmpeg -i "$filename.ogg" -c:a libvorbis -qscale:a 0 "CONV/$filename.ogg"
rm "$filename.ogg"
done
@ -21,10 +21,10 @@ for file in Audio/**/*.ogg
do
filename="${file%.*}"
echo $filename
echo "$filename"
ffmpeg -i $file -c:a libvorbis -qscale:a 0 CONV/$filename.ogg
rm $file
ffmpeg -i "$file" -c:a libvorbis -qscale:a 0 "CONV/$filename.ogg"
rm "$file"
done
@ -33,10 +33,10 @@ for file in Audio/**/*.wav
do
filename="${file%.*}"
echo $filename
echo "$filename"
ffmpeg -i $file -c:a libvorbis -qscale:a 0 CONV/$filename.ogg
rm $file
ffmpeg -i "$file" -c:a libvorbis -qscale:a 0 "CONV/$filename.ogg"
rm "$file"
done

View File

@ -7,7 +7,7 @@ do
filename="${file%.*}"
fl="$(echo "$filename" | tr '[:upper:]' '[:lower:]')"
md5=`md5sum ${file} | awk '{ print $1 }'`
md5=`md5sum "${file}" | awk '{ print $1 }'`
echo "\"$fl\": \"${file}?h=${md5}\"," >> mapping.js