From: David Zafman Date: Fri, 23 Mar 2018 00:19:56 +0000 (-0700) Subject: test: Replace bc command with printf command X-Git-Tag: v13.1.0~508^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=293ac9895f86b1258434d0dc539a7d4b7046cb6d;p=ceph.git test: Replace bc command with printf command Signed-off-by: David Zafman --- diff --git a/qa/standalone/scrub/osd-recovery-scrub.sh b/qa/standalone/scrub/osd-recovery-scrub.sh index 670ea1c328d8..1097c7b33da8 100755 --- a/qa/standalone/scrub/osd-recovery-scrub.sh +++ b/qa/standalone/scrub/osd-recovery-scrub.sh @@ -65,7 +65,7 @@ function TEST_recovery_scrub() { pids="" for pg in $(seq 0 $(expr $PGS - 1)) do - run_in_background pids pg_scrub $poolid.$(echo "{ obase=16; $pg }" | bc | tr '[:upper:]' '[:lower:]') + run_in_background pids pg_scrub $poolid.$(printf "%x" $pg) done ceph pg dump pgs wait_background pids