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)"
|
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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user