summaryrefslogtreecommitdiff
path: root/list-chapters.sh
diff options
context:
space:
mode:
Diffstat (limited to 'list-chapters.sh')
-rwxr-xr-xlist-chapters.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/list-chapters.sh b/list-chapters.sh
index 0964982..df0f241 100755
--- a/list-chapters.sh
+++ b/list-chapters.sh
@@ -3,9 +3,10 @@
cat book-list | while read buch
do
i=1
- while [ -e "chapters/$buch/$i" ]
+ buchdir=$(echo "$buch" | sed "s/ /_/g")
+ while [ -e "chapters/$buchdir/$i" ]
do
- echo "chapters/$buch/$i"
+ echo "chapters/$buchdir/$i"
i=$((i+1))
done
done