Author: pierre
Date: Fri Jul 10 06:29:15 2020
New Revision: 4196
Log:
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*.
Modified:
jhalfs/trunk/LFS/master.sh
Modified: jhalfs/trunk/LFS/master.sh
==============================================================================
--- jhalfs/trunk/LFS/master.sh Fri Jul 10 06:26:23 2020 (r4195)
+++ jhalfs/trunk/LFS/master.sh Fri Jul 10 06:29:15 2020 (r4196)
@@ -242,7 +242,7 @@
# 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[*]}
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page