Fix quotes in bash scripts
This commit is contained in:
parent
84e35cbac5
commit
1bc4b5e881
|
@ -7,11 +7,11 @@ do
|
||||||
filename="${file%.*}"
|
filename="${file%.*}"
|
||||||
echo "MIDI $filename"
|
echo "MIDI $filename"
|
||||||
|
|
||||||
timidity $file -o $filename.ogg -Ov
|
timidity "$file" -o "$filename.ogg" -Ov
|
||||||
rm $file
|
rm "$file"
|
||||||
|
|
||||||
ffmpeg -i $filename.ogg -c:a libvorbis -qscale:a 0 CONV/$filename.ogg
|
ffmpeg -i "$filename.ogg" -c:a libvorbis -qscale:a 0 "CONV/$filename.ogg"
|
||||||
rm $filename.ogg
|
rm "$filename.ogg"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -21,10 +21,10 @@ for file in Audio/**/*.ogg
|
||||||
do
|
do
|
||||||
|
|
||||||
filename="${file%.*}"
|
filename="${file%.*}"
|
||||||
echo $filename
|
echo "$filename"
|
||||||
|
|
||||||
ffmpeg -i $file -c:a libvorbis -qscale:a 0 CONV/$filename.ogg
|
ffmpeg -i "$file" -c:a libvorbis -qscale:a 0 "CONV/$filename.ogg"
|
||||||
rm $file
|
rm "$file"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -33,10 +33,10 @@ for file in Audio/**/*.wav
|
||||||
do
|
do
|
||||||
|
|
||||||
filename="${file%.*}"
|
filename="${file%.*}"
|
||||||
echo $filename
|
echo "$filename"
|
||||||
|
|
||||||
ffmpeg -i $file -c:a libvorbis -qscale:a 0 CONV/$filename.ogg
|
ffmpeg -i "$file" -c:a libvorbis -qscale:a 0 "CONV/$filename.ogg"
|
||||||
rm $file
|
rm "$file"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ do
|
||||||
|
|
||||||
filename="${file%.*}"
|
filename="${file%.*}"
|
||||||
fl="$(echo "$filename" | tr '[:upper:]' '[:lower:]')"
|
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
|
echo "\"$fl\": \"${file}?h=${md5}\"," >> mapping.js
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue