# HG changeset patch # User "Yann E. MORIN" # Date 1216718167 0 # Node ID 607277e3cdab40d055998361374aa46b244eaf4c # Parent 4d3d1e85e7d715d184b46c704d01c5d5cf581893 Michael ABBOTT reported that Ubuntu had problems running menuconfig. Turned out that a POSIX script shell was in fact not POSIX: == does not check for equality, -eq does. /trunk/kconfig/lxdialog/check-lxdialog.sh | 4 2 2 0 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -r 4d3d1e85e7d7 -r 607277e3cdab kconfig/lxdialog/check-lxdialog.sh --- a/kconfig/lxdialog/check-lxdialog.sh Sun Jul 20 17:20:45 2008 +0000 +++ b/kconfig/lxdialog/check-lxdialog.sh Tue Jul 22 09:16:07 2008 +0000 @@ -43,7 +43,7 @@ # Check if we can link to ncurses check() { echo "main() {}" | $cc -xc - -o $tmp 2> /dev/null - if [ $? != 0 ]; then + if [ $? -ne 0 ]; then echo " *** Unable to find the ncurses libraries." 1>&2 echo " *** make menuconfig require the ncurses libraries" 1>&2 echo " *** " 1>&2 @@ -57,7 +57,7 @@ printf "Usage: $0 [-check compiler options|-header|-library]\n" } -if [ $# == 0 ]; then +if [ $# -eq 0 ]; then usage exit 1 fi