aboutsummaryrefslogtreecommitdiff
path: root/util/board_status/board_status.sh
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-01-21 02:39:46 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-01-21 03:17:13 +0100
commit77005b47688b6b18bca27350a0b1f399b31f71f6 (patch)
treec4ee7afccba58b681b4c071a9e868a05cfb04fbd /util/board_status/board_status.sh
parent74230c32ced71c1c56691f95c82860096b63366d (diff)
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>
Diffstat (limited to 'util/board_status/board_status.sh')
-rw-r--r--util/board_status/board_status.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 1269c41a07..735932b010 100644
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -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