board-status: avoid shell error

[ $3 -eq 1 ] fails if no third argument is given.
[ "$3" -eq 1 ] still fails.

Doing a string comparison is robust across shells.

Change-Id: I3ee388fdbe51b7ab9344d86e67827654714d3191
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/6576
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Patrick Georgi 2014-08-10 15:44:04 +02:00
parent bfca984b78
commit 4ef309e85d
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ test_cmd()
return 0 return 0
fi fi
if [ $3 -eq 1 ]; then if [ "$3" = "1" ]; then
return 1 return 1
fi fi