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
|
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)
|
||||||
|
|
Reference in a new issue