aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Labastie <pieere@linuxfromscratch.org>2020-05-06 14:58:26 +0000
committerPierre Labastie <pieere@linuxfromscratch.org>2020-05-06 14:58:26 +0000
commita97aa3dd0b36b95168f8f959284d5797a3484e5b (patch)
tree0d614f8b3d526b309bf597798c967d5624f16cf0
parentc911069f9a951e8f378f6b50d1b4f92fe168f114 (diff)
Fix test for symlink when setting PATH
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11839 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter04/settingenviron.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml
index a94586e0c..39dcdfa3d 100644
--- a/chapter04/settingenviron.xml
+++ b/chapter04/settingenviron.xml
@@ -44,7 +44,7 @@ LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/usr/bin
-if [ ! -l /bin ]; then PATH=/bin:$PATH; fi
+if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
PATH=$LFS/tools/bin:$PATH
export LFS LC_ALL LFS_TGT PATH</literal>
EOF</userinput></screen>
@@ -124,7 +124,7 @@ EOF</userinput></screen>
</varlistentry>
<varlistentry>
- <term><parameter>if [ ! -l /bin ]; then PATH=/bin:$PATH; fi</parameter></term>
+ <term><parameter>if [ ! -L /bin ]; then PATH=/bin:$PATH; fi</parameter></term>
<listitem>
<para>If <filename class="directory">/bin</filename> is not a symbolic
link, then it has to be added to the <envar>PATH</envar> variable.</para>