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:
parent
6caa5b8816
commit
7e0a1b8018
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue