[coreboot-gerrit] New patch to review for coreboot: 4bdd5b1 board_status.sh: Replace [[ with [.
Vladimir Serbinenko (phcoder@gmail.com)
gerrit at coreboot.org
Tue Jan 21 02:40:13 CET 2014
Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4764
-gerrit
commit 4bdd5b18c14ec05c8af8982c9233e4534dcb802f
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date: Tue Jan 21 02:39:46 2014 +0100
board_status.sh: Replace [[ with [.
[[ is a bashism.
Change-Id: Ief7c43fc1740db32ed97850a415b0c256b5bb35a
Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
util/board_status/board_status.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 1269c41..735932b 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
More information about the coreboot-gerrit
mailing list