summaryrefslogtreecommitdiff
path: root/audioconversion.sh
diff options
context:
space:
mode:
authorJoshua Drake <joshua.drake@ditchwitch.com>2023-04-18 13:56:21 -0500
committerJoshua Drake <joshua.drake@ditchwitch.com>2023-04-18 13:56:21 -0500
commit20b176d520a2deb587a28236bdf04273d85e3640 (patch)
tree662ec05174c875217dd542c2ac9a86346699cf36 /audioconversion.sh
parent6e3d0fd829339e08265a30f18bb7f50a74c4cccf (diff)
Made extentions case insensitive.
Diffstat (limited to 'audioconversion.sh')
-rw-r--r--audioconversion.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/audioconversion.sh b/audioconversion.sh
index 00de26a..083cb19 100644
--- a/audioconversion.sh
+++ b/audioconversion.sh
@@ -46,7 +46,7 @@ rm "$file"
done
echo "Converting audio... Please be Patient!"
-find "$1" -type f -name '*.flac' -printf '%h\n' | sort -u | while read -r dir
+find "$1" -type f -iname '*.flac' -printf '%h\n' | sort -u | while read -r dir
do
if [ $(( $(find "$dir"/*.flac | wc -l) )) -gt $(( $(find "$2${dir#"$1"}"/*.mp3 | wc -l) )) ]
then
@@ -57,7 +57,7 @@ find "$1" -type f -name '*.flac' -printf '%h\n' | sort -u | while read -r dir
fi
done
- find "$1" -type f -name '*.m4a' -printf '%h\n' | sort -u | while read -r dir
+ find "$1" -type f -iname '*.m4a' -printf '%h\n' | sort -u | while read -r dir
do
if [ $(( $(find "$dir"/*.m4a | wc -l) )) -gt $(( $(find "$2${dir#"$1"}"/*.mp3 | wc -l) )) ]
then
@@ -67,7 +67,7 @@ find "$1" -type f -name '*.flac' -printf '%h\n' | sort -u | while read -r dir
fi
done
- find "$1" -type f -name '*.mp4' -printf '%h\n' | sort -u | while read -r dir
+ find "$1" -type f -iname '*.mp4' -printf '%h\n' | sort -u | while read -r dir
do
if [ $(( $(find "$dir"/*.mp4 | wc -l) )) -gt $(( $(find "$2${dir#"$1"}"/*.mp3 | wc -l) )) ]
then
@@ -77,7 +77,7 @@ find "$1" -type f -name '*.flac' -printf '%h\n' | sort -u | while read -r dir
fi
done
- find "$1" -type f -name '*.wav' -printf '%h\n' | sort -u | while read -r dir
+ find "$1" -type f -iname '*.wav' -printf '%h\n' | sort -u | while read -r dir
do
if [ $(( $(find "$dir"/*.wav | wc -l) )) -gt $(( $(find "$2${dir#"$1"}"/*.mp3 | wc -l) )) ]
then