[lfs] 03/03: Tidy up coreutils part of version_check

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]> Sun, 24 May 2026 07:53:40 +0000
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

commit 290bcae695cf79685c4bc1324b3762dd94577cc3
Author: Pierre Labastie <[email protected]>
AuthorDate: Sun May 24 09:42:39 2026 +0200

    Tidy up coreutils part of version_check
---
 chapter02/hostreqs.xml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/chapter02/hostreqs.xml b/chapter02/hostreqs.xml
index e2f692730..5539d0d7b 100644
--- a/chapter02/hostreqs.xml
+++ b/chapter02/hostreqs.xml
@@ -261,12 +261,10 @@ ver_kernel()
 }
 
 # Coreutils first because --version-sort needs Coreutils >= 7.0
-sort --version 2>&amp;1 | grep -E -q 'uutils'
-if [ $? -eq 0 ]
-then
-    ver_check Coreutils      sort     0.8 || bail "Uutils Coreutils too old, stop"
+if sort --version |&amp; grep -q uutils; then
+    ver_check Coreutils  sort     0.8 || bail "Uutils Coreutils too old, stop"
 else
-    ver_check Coreutils      sort     8.1 || bail "Coreutils too old, stop"
+    ver_check Coreutils  sort     8.1 || bail "GNU Coreutils too old, stop"
 fi
 ver_check Bash           bash     3.2
 ver_check Binutils       ld       2.13.1

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page