From 77005b47688b6b18bca27350a0b1f399b31f71f6 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Tue, 21 Jan 2014 02:39:46 +0100 Subject: board_status.sh: Replace [[ with [. [[ is a bashism. Change-Id: Ief7c43fc1740db32ed97850a415b0c256b5bb35a Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/4764 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- util/board_status/board_status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') 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 -- cgit v1.2.3