support/scripts/dependencies.sh: improve g++ test to avoid misleading output
authorJens Stimpfle <debian@jstimpfle.de>
Wed, 12 Nov 2014 13:31:44 +0000 (13:31 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 8 Dec 2014 21:32:21 +0000 (22:32 +0100)
commitd1607dc7dfc2c5397ff6b67ebd18d25c6184f650
tree0835329120cbb8928eef07c1d3682b80186dd6b9
parent66056a5179ef49f2ec10ba5d7fbd1a58863d1350
support/scripts/dependencies.sh: improve g++ test to avoid misleading output

When g++ is not installed, a misleading error message turns up because
of a bad combination of an unquoted shell variable and control flow.

 ~/buildroot$ make
 You may have to install 'g++' on your build machine
 /home/testuser/buildroot/support/dependencies/dependencies.sh: 136: [: -lt: unexpected operator

[Thomas:
  - fixed commit log, as per the suggestion of Yann E. Morin.
  - don't change existing empty new lines, suggested by Yann.
  - use positive logic in the newly added test, suggested by Yann.]

Signed-off-by: Jens Stimpfle <debian@jstimpfle.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/dependencies/dependencies.sh