Use "=" not "==" in string test.

POSIX says "=" is string comparison and some shells (eg HP-UX) will
complain about "==".
This commit is contained in:
Darren Tucker 2020-11-25 17:38:46 +11:00
parent 9880f3480f
commit 637017a7dd
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ cp $authkeys $origkeys
# Allocating ptys can require privileges on some platforms.
skip_pty=""
if ! config_defined HAVE_OPENPTY && [ "x$SUDO" == "x" ]; then
if ! config_defined HAVE_OPENPTY && [ "x$SUDO" = "x" ]; then
skip_pty="no openpty(3) and SUDO not set"
fi