From 08dfafc43757c42971b4bc3709ae7a5cda7c21fb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 15 Jul 2017 19:18:58 +0200 Subject: fix more instances of ": $((a++))" in shell scripts Signed-off-by: Denys Vlasenko --- examples/mdev.conf.change_blockdev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/mdev.conf.change_blockdev.sh') diff --git a/examples/mdev.conf.change_blockdev.sh b/examples/mdev.conf.change_blockdev.sh index 512e43fcc..252d30f53 100755 --- a/examples/mdev.conf.change_blockdev.sh +++ b/examples/mdev.conf.change_blockdev.sh @@ -14,7 +14,7 @@ env | sort while sleep 1; test $cnt != 0; do echo "Trying to reread partition table on $DEVNAME ($cnt)" - : $((cnt--)) + cnt=$((cnt-1)) # If device node doesn't exist, it means the device was removed. # Stop trying. test -e "$DEVNAME" || { echo "$DEVNAME doesn't exist, aborting"; exit 1; } -- cgit v1.2.3