accomodate for filenames with e.g.spaces

This commit is contained in:
fabian 2024-01-18 15:43:43 +01:00
parent 0848db107c
commit c926e32cda
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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