LFS/master.sh: only count chapter* dirs in lfs-commands
We count the number of files in lfs-commands to know whether we have an old or a new book. But this shouldn't include the custom-tools dir, so only count chapter*.
This commit is contained in:
parent
8b85dae454
commit
6f74ca146f
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ build_Makefile() { #
|
|||
|
||||
# We need to know the chapter numbering, which depends on the version
|
||||
# of the book. Use the number of subdirs to know which version we have
|
||||
chaps=($(echo *))
|
||||
chaps=($(echo chapter*))
|
||||
nb_chaps=${#chaps[*]} # 5 if classical version, 7 if new version
|
||||
# DEBUG
|
||||
# echo chaps: ${chaps[*]}
|
||||
|
|
Reference in a new issue