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 fi
ck_terminal: ck_terminal:
@stty size | read LINES COLUMNS; \\ @stty size | ( read L C; \\
if (( LINES < 24 )) || (( COLUMNS < 80 )) ; then \\ if (( L < 24 )) || (( C < 80 )) ; then \\
echo "--------------------------------------------------"; \\ 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 "Minimum: 80 columns x 24 lines";\\
echo "--------------------------------------------------"; \\ echo "--------------------------------------------------"; \\
exit 1; \\ exit 1; \\
fi fi )
mk_SETUP: mk_SETUP:
@\$(call echo_SU_request) @\$(call echo_SU_request)