Fix an issue in ck_terminal, which was working only by chance (compensating

bugs) on some setup (but not all)
This commit is contained in:
Pierre Labastie 2020-05-31 08:58:41 +00:00
parent 6caa5b8816
commit 7e0a1b8018

View file

@ -535,14 +535,14 @@ ck_UID:
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)