better output dir naming

This commit is contained in:
fabian 2023-05-27 18:12:05 +02:00
parent 7accc4c185
commit f501c081df
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,8 @@
set -euo pipefail set -euo pipefail
# ensure existence of destination folder # ensure existence of destination folder
dest=../reencode dir="$(pwd)"
dest=${dir%/*}/${dir##*/}_reencode
if [[ !(-d $dest) ]]; then if [[ !(-d $dest) ]]; then
mkdir $dest mkdir $dest
fi fi

View File

@ -18,7 +18,8 @@ if [[ -z $vbr ]]; then
fi fi
# ensure existence of destination folder # ensure existence of destination folder
dest=../reencode dir="$(pwd)"
dest=${dir%/*}/${dir##*/}_reencode
if [[ !(-d $dest) ]]; then if [[ !(-d $dest) ]]; then
mkdir $dest mkdir $dest
fi fi