avoid ConcurrentModificationException-esque error by saving directory names beforehand
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
set -euo pipefail
|
||||
|
||||
/sync/scripts/escapeFilenames.sh . _
|
||||
declare -a dirs=();
|
||||
for d in *; do
|
||||
dirs+=($d);
|
||||
done
|
||||
for d in "${dirs[@]}"; do
|
||||
cd "$d";
|
||||
/sync/scripts/escapeFilenames.sh Chapter Kapitel
|
||||
/sync/scripts/reencode_m4a.sh -map;
|
||||
|
||||
Reference in New Issue
Block a user