From e2c2a1cbccf061a40cfeb1aa0f0a2237c14a130e Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 3 Apr 2014 05:27:51 +0100 Subject: [PATCH] Fix SC2003: `expr` is antiquated. Consider rewriting this using `$((..))`, `${}` or `[[ ]]`. --- bootstrap-salt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 763742f..5380e35 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -3957,11 +3957,11 @@ daemons_running() { if [ "${DISTRO_NAME}" = "SmartOS" ]; then if [ "$(svcs -Ho STA salt-$fname)" != "ON" ]; then echoerror "salt-$fname was not found running" - FAILED_DAEMONS=$(expr $FAILED_DAEMONS + 1) + FAILED_DAEMONS=$((FAILED_DAEMONS + 1)) fi elif [ "x$(ps wwwaux | grep -v grep | grep salt-$fname)" = "x" ]; then echoerror "salt-$fname was not found running" - FAILED_DAEMONS=$(expr $FAILED_DAEMONS + 1) + FAILED_DAEMONS=$((FAILED_DAEMONS + 1)) fi done return $FAILED_DAEMONS