board_status.sh: Replace [[ with [.

[[ is a bashism.

Change-Id: Ief7c43fc1740db32ed97850a415b0c256b5bb35a
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/4764
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Vladimir Serbinenko 2014-01-21 02:39:46 +01:00
parent 74230c32ce
commit 77005b4768
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ test_cmd()
return
fi
if [[ $1 -eq $REMOTE && -n "$REMOTE_HOST" ]]; then
if [ "$1" -eq "$REMOTE" ] && [ -n "$REMOTE_HOST" ]; then
ssh root@${REMOTE_HOST} which "$2" >/dev/null
rc=$?
else
@ -52,7 +52,7 @@ _cmd()
return $EXIT_FAILURE
fi
if [[ $1 -eq $REMOTE && -n "$REMOTE_HOST" ]]; then
if [ "$1" -eq "$REMOTE" ] && [ -n "$REMOTE_HOST" ]; then
ssh root@${REMOTE_HOST} "$2" > "${3}" 2>&1
else
$2 > "${3}" 2>&1