accomodate for filenames with e.g.spaces
This commit is contained in:
parent
0848db107c
commit
c926e32cda
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user