Browse Source

Fix quoting

master
Martchus 2 years ago
parent
commit
8dfc640679
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      diriterator.sh

+ 2
- 1
diriterator.sh View File

@ -27,7 +27,8 @@ function iteratedirs {
if [[ ! $filter ]] || [[ $item =~ $filter ]]; then
name=${item##*/}
namewithoutextension=${name%.*}
queue+=("ITERATOR_FULL_PATH=\"$item\" ITERATOR_FILE_NAME=\"$name\" ITERATOR_FILE_NAME_WITHOUT_EXTENSION=\"$namewithoutextension\" ITERATOR_CURRENT_DIR=\"$dir\" ITERATOR_CURRENT_REL_DIR=\"$current_rel_dir\" ITERATOR_BASE_DIR=\"$basedir\" ITERATOR_TARGET_DIR=\"$targetdir/$current_rel_dir\" \"$cmd\" $append")
iteratortargetdir=${targetdir}/${current_rel_dir}
queue+=("ITERATOR_FULL_PATH=${item@Q} ITERATOR_FILE_NAME=${name@Q} ITERATOR_FILE_NAME_WITHOUT_EXTENSION=${namewithoutextension@Q} ITERATOR_CURRENT_DIR=${dir@Q} ITERATOR_CURRENT_REL_DIR=${current_rel_dir@Q} ITERATOR_BASE_DIR=${basedir@QQ} ITERATOR_TARGET_DIR=${iteratortargetdir@Q} ${cmd@Q} ${append@Q}")
else
echo "${bold}${blue}Info:${normal} ${bold}Skipping »$item«.${normal}"
fi


Loading…
Cancel
Save