aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-15 19:18:58 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-15 19:20:45 +0200
commit08dfafc43757c42971b4bc3709ae7a5cda7c21fb (patch)
tree21d09e64ae9858c8285410ebd6aae6a17439efe1 /util-linux
parented2b9225371a36dd2694df65e395dc32fd94c5dd (diff)
downloadbusybox-w32-08dfafc43757c42971b4bc3709ae7a5cda7c21fb.tar.gz
busybox-w32-08dfafc43757c42971b4bc3709ae7a5cda7c21fb.tar.bz2
busybox-w32-08dfafc43757c42971b4bc3709ae7a5cda7c21fb.zip
fix more instances of ": $((a++))" in shell scripts
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rwxr-xr-xutil-linux/mkfs_ext2_test.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/mkfs_ext2_test.sh b/util-linux/mkfs_ext2_test.sh
index f5347cc04..df22963f2 100755
--- a/util-linux/mkfs_ext2_test.sh
+++ b/util-linux/mkfs_ext2_test.sh
@@ -47,7 +47,7 @@ test_mke2fs() {
47kilobytes=60 47kilobytes=60
48while true; do 48while true; do
49 test_mke2fs || exit 1 49 test_mke2fs || exit 1
50 : $((kilobytes++)) 50 kilobytes=$((kilobytes+1))
51 test $kilobytes = 200 && break 51 test $kilobytes = 200 && break
52done 52done
53 53
@@ -56,7 +56,7 @@ done
56kilobytes=$((1 * 8*1024 - 50)) 56kilobytes=$((1 * 8*1024 - 50))
57while true; do 57while true; do
58 test_mke2fs || exit 1 58 test_mke2fs || exit 1
59 : $((kilobytes++)) 59 kilobytes=$((kilobytes+1))
60 test $kilobytes = $((1 * 8*1024 + 300)) && break 60 test $kilobytes = $((1 * 8*1024 + 300)) && break
61done 61done
62 62
@@ -65,7 +65,7 @@ done
65kilobytes=$((2 * 8*1024 - 50)) 65kilobytes=$((2 * 8*1024 - 50))
66while true; do 66while true; do
67 test_mke2fs || exit 1 67 test_mke2fs || exit 1
68 : $((kilobytes++)) 68 kilobytes=$((kilobytes+1))
69 test $kilobytes = $((2 * 8*1024 + 400)) && break 69 test $kilobytes = $((2 * 8*1024 + 400)) && break
70done 70done
71 71
@@ -74,7 +74,7 @@ done
74kilobytes=$((3 * 8*1024 - 50)) 74kilobytes=$((3 * 8*1024 - 50))
75while true; do 75while true; do
76 test_mke2fs || exit 1 76 test_mke2fs || exit 1
77 : $((kilobytes++)) 77 kilobytes=$((kilobytes+1))
78 test $kilobytes = $((3 * 8*1024 + 500)) && break 78 test $kilobytes = $((3 * 8*1024 + 500)) && break
79done 79done
80 80
@@ -83,7 +83,7 @@ done
83kilobytes=$((4 * 8*1024 - 50)) 83kilobytes=$((4 * 8*1024 - 50))
84while true; do 84while true; do
85 test_mke2fs || exit 1 85 test_mke2fs || exit 1
86 : $((kilobytes++)) 86 kilobytes=$((kilobytes+1))
87 test $kilobytes = $((4 * 8*1024 + 600)) && break 87 test $kilobytes = $((4 * 8*1024 + 600)) && break
88done 88done
89 89
@@ -92,7 +92,7 @@ done
92kilobytes=$((5 * 8*1024 - 50)) 92kilobytes=$((5 * 8*1024 - 50))
93while true; do 93while true; do
94 test_mke2fs || exit 1 94 test_mke2fs || exit 1
95 : $((kilobytes++)) 95 kilobytes=$((kilobytes+1))
96 test $kilobytes = $((5 * 8*1024 + 700)) && break 96 test $kilobytes = $((5 * 8*1024 + 700)) && break
97done 97done
98exit 98exit