Author: pierre
Date: Sun May 31 01:58:41 2020
New Revision: 4164
Log:
Fix an issue in ck_terminal, which was working only by chance (compensating
bugs) on some setup (but not all)
Modified:
jhalfs/trunk/LFS/master.sh
Modified: jhalfs/trunk/LFS/master.sh
==============================================================================
--- jhalfs/trunk/LFS/master.sh Sun May 31 00:31:32 2020 (r4163)
+++ jhalfs/trunk/LFS/master.sh Sun May 31 01:58:41 2020 (r4164)
@@ -535,14 +535,14 @@
fi
ck_terminal:
- @stty size | read LINES COLUMNS; \\
- if (( LINES < 24 )) || (( COLUMNS < 80 )) ; then \\
+ @stty size | ( read L C; \\
+ if (( L < 24 )) || (( C < 80 )) ; then \\
echo "--------------------------------------------------"; \\
- echo "Terminal too small: \$\$COLUMNS columns x \$\$LINES lines";\\
+ echo "Terminal too small: \$\$C columns x \$\$L lines";\\
echo "Minimum: 80 columns x 24 lines";\\
echo "--------------------------------------------------"; \\
exit 1; \\
- fi
+ fi )
mk_SETUP:
@\$(call echo_SU_request)
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page