diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-22 09:19:42 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-22 09:19:42 +0000 |
commit | 3277d5a526c5cd83836ec68d17cd47e931cae128 (patch) | |
tree | a728118b5715caf690159780e515391c9b1c6210 | |
parent | 295e193d70d9e6eae1b9f242a6717421d35fc8a1 (diff) | |
download | crosstool-ng-3277d5a526c5cd83836ec68d17cd47e931cae128.tar.gz crosstool-ng-3277d5a526c5cd83836ec68d17cd47e931cae128.tar.bz2 crosstool-ng-3277d5a526c5cd83836ec68d17cd47e931cae128.zip |
Backport #844 from trunk:
In POSIX shell scripts, == does not check for equality, -eq does.
/branches/1.2/kconfig/lxdialog/check-lxdialog.sh | 4 2 2 0 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
-rwxr-xr-x | kconfig/lxdialog/check-lxdialog.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kconfig/lxdialog/check-lxdialog.sh b/kconfig/lxdialog/check-lxdialog.sh index 120d624e..e4d8adc3 100755 --- a/kconfig/lxdialog/check-lxdialog.sh +++ b/kconfig/lxdialog/check-lxdialog.sh @@ -43,7 +43,7 @@ trap "rm -f $tmp" 0 1 2 3 15 # 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 @@ usage() { printf "Usage: $0 [-check compiler options|-header|-library]\n" } -if [ $# == 0 ]; then +if [ $# -eq 0 ]; then usage exit 1 fi |