diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-21 02:39:46 +0100 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-21 03:17:13 +0100 |
commit | 77005b47688b6b18bca27350a0b1f399b31f71f6 (patch) | |
tree | c4ee7afccba58b681b4c071a9e868a05cfb04fbd /util/board_status | |
parent | 74230c32ced71c1c56691f95c82860096b63366d (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')
-rw-r--r-- | util/board_status/board_status.sh | 4 |
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 |