From 20b176d520a2deb587a28236bdf04273d85e3640 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Tue, 18 Apr 2023 13:56:21 -0500 Subject: Made extentions case insensitive. --- audioconversion.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'audioconversion.sh') 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 -- cgit v1.2.3