From c926e32cda3235556f289d33ae93513842755469 Mon Sep 17 00:00:00 2001 From: fabian Date: Thu, 18 Jan 2024 15:43:43 +0100 Subject: [PATCH] accomodate for filenames with e.g.spaces --- scripts/reencode_audio.sh | 2 +- scripts/reencode_m4a.sh | 2 +- scripts/transcode_opus.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/reencode_audio.sh b/scripts/reencode_audio.sh index 814eb43..511ea6d 100755 --- a/scripts/reencode_audio.sh +++ b/scripts/reencode_audio.sh @@ -5,7 +5,7 @@ set -euo pipefail dir="$(pwd)" dest=${dir%/*}/${dir##*/}_reencode if [[ !(-d $dest) ]]; then - mkdir $dest + mkdir "$dest" fi for file in ./*.$1; do diff --git a/scripts/reencode_m4a.sh b/scripts/reencode_m4a.sh index 38e1bcc..8ddc742 100755 --- a/scripts/reencode_m4a.sh +++ b/scripts/reencode_m4a.sh @@ -21,7 +21,7 @@ fi dir="$(pwd)" dest=${dir%/*}/${dir##*/}_reencode if [[ !(-d $dest) ]]; then - mkdir $dest + mkdir "$dest" fi for file in ./*.m4a; do diff --git a/scripts/transcode_opus.sh b/scripts/transcode_opus.sh index 8ca6e3a..f3da181 100755 --- a/scripts/transcode_opus.sh +++ b/scripts/transcode_opus.sh @@ -16,7 +16,7 @@ done dir="$(pwd)" dest=${dir%/*}/${dir##*/}_ogg if [[ !(-d $dest) ]]; then - mkdir $dest + mkdir "$dest" fi for file in ./*.$file_suffix; do