aboutsummaryrefslogtreecommitdiffstats
path: root/prologue/hostreqs.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2015-10-25 21:38:38 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2015-10-25 21:38:38 +0000
commit7c4d11a23a9c3614bd5b6a6051119a7b24b9ff6a (patch)
treeb550a116fb7514b939a5343001f721ebb841886c /prologue/hostreqs.xml
parent82f4f90a36e24e61661e1c266dc1efba6546d009 (diff)
Revise version-check.sh to flag bad /bin/sh symlinks
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10967 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'prologue/hostreqs.xml')
-rw-r--r--prologue/hostreqs.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/prologue/hostreqs.xml b/prologue/hostreqs.xml
index f77d88105..2720db439 100644
--- a/prologue/hostreqs.xml
+++ b/prologue/hostreqs.xml
@@ -163,7 +163,11 @@
# Simple script to list version numbers of critical development tools
export LC_ALL=C
bash --version | head -n1 | cut -d" " -f2-4
-echo "/bin/sh -&gt; `readlink -f /bin/sh`"
+MYSH=$(readlink -f /bin/sh)
+echo "/bin/sh -&gt; $MYSH"
+echo $MYSH | grep -qv bash || echo "ERROR: /bin/sh does not point to bash"
+unset MYSH
+
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
bison --version | head -n1