From 6f74ca146f11d52088a159a2d3547a69564715fe Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 10 Jul 2020 13:29:15 +0000 Subject: [PATCH] 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*. --- LFS/master.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LFS/master.sh b/LFS/master.sh index fbdf51e..6613438 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -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[*]}