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)" dir="$(pwd)"
dest=${dir%/*}/${dir##*/}_reencode dest=${dir%/*}/${dir##*/}_reencode
if [[ !(-d $dest) ]]; then if [[ !(-d $dest) ]]; then
mkdir $dest mkdir "$dest"
fi fi
for file in ./*.$1; do for file in ./*.$1; do

View File

@ -21,7 +21,7 @@ fi
dir="$(pwd)" dir="$(pwd)"
dest=${dir%/*}/${dir##*/}_reencode dest=${dir%/*}/${dir##*/}_reencode
if [[ !(-d $dest) ]]; then if [[ !(-d $dest) ]]; then
mkdir $dest mkdir "$dest"
fi fi
for file in ./*.m4a; do for file in ./*.m4a; do

View File

@ -16,7 +16,7 @@ done
dir="$(pwd)" dir="$(pwd)"
dest=${dir%/*}/${dir##*/}_ogg dest=${dir%/*}/${dir##*/}_ogg
if [[ !(-d $dest) ]]; then if [[ !(-d $dest) ]]; then
mkdir $dest mkdir "$dest"
fi fi
for file in ./*.$file_suffix; do for file in ./*.$file_suffix; do