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:
parent
74230c32ce
commit
77005b4768
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue