summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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