diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 09:37:20 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 22:23:17 +0200 |
commit | db338c2b42abb6b5274fba5f93a982241afa8ecf (patch) | |
tree | cedd893fdded439153dbc0e1b0efa4c6e3b83461 | |
parent | c0197040a5c68af8314b5466c8b1f61b381044f6 (diff) | |
download | lvm2-db338c2b42abb6b5274fba5f93a982241afa8ecf.tar.gz |
tests: check.sh drop unnecessary $
$/${} is unnecessary on arithmetic variables.
-rw-r--r-- | test/lib/check.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/check.sh b/test/lib/check.sh index 1ec1babab..855523580 100644 --- a/test/lib/check.sh +++ b/test/lib/check.sh @@ -208,14 +208,14 @@ in_sync() { # 6th argument is the sync ratio for RAID idx=6 type=${a[3]} - if [ "${a[$(($idx + 1))]}" != "idle" ]; then + if [ "${a[$(( idx + 1 ))]}" != "idle" ]; then echo "$lvm_name ($type$snap) is not in-sync" return 1 fi ;; "mirror") # 4th Arg tells us how far to the sync ratio - idx=$((${a[3]} + 4)) + idx=$(( a[3] + 4 )) type=${a[2]} ;; *) @@ -230,7 +230,7 @@ in_sync() { return 1 fi - if [[ ${a[$(($idx - 1))]} =~ a ]] ; then + if [[ ${a[$(( idx - 1 ))]} =~ a ]] ; then [ $ignore_a -eq 0 ] && \ die "$lvm_name ($type$snap) in-sync, but 'a' characters in health status" echo "$lvm_name ($type$snap) is not in-sync" |