diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-07-06 19:27:04 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-07-10 14:23:53 +0200 |
commit | 146bfb2417de3e6cd719b5aef900bf927a39a0cd (patch) | |
tree | c27697ea4d3dad3397d49dd4e88e47f171fe24d7 /test/shell/lvconvert-raid456.sh | |
parent | 72e82b42a9c07293fdfae7ec0a98dd9fe5a0c868 (diff) | |
download | lvm2-146bfb2417de3e6cd719b5aef900bf927a39a0cd.tar.gz |
tests: math drop uncessary $/${}
$/${} is unnecessary on arithmetic variables.
Use $((..)) instead of deprecated $[..]
Diffstat (limited to 'test/shell/lvconvert-raid456.sh')
-rw-r--r-- | test/shell/lvconvert-raid456.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/shell/lvconvert-raid456.sh b/test/shell/lvconvert-raid456.sh index 0e3f378ad..43fe50331 100644 --- a/test/shell/lvconvert-raid456.sh +++ b/test/shell/lvconvert-raid456.sh @@ -53,7 +53,7 @@ for i in $levels; do devices=( $(get_image_pvs $vg $lv1) ) for k in $(seq $j); do - index=$((($k + $o) % $dev_cnt)) + index=$(( ( k + o ) % dev_cnt )) replace="$replace --replace ${devices[$index]}" done aux wait_for_sync $vg $lv1 |