diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-28 20:31:09 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 22:23:16 +0200 |
commit | 8dc29d7cc7e86295116a4fb401315896b6793fa8 (patch) | |
tree | 3ef9a176967a27644d53133a7e96565af114304d /scripts/vgimportclone.sh | |
parent | 16a38dede95cbcd7bfd80bb2124ce205a20c5a2f (diff) | |
download | lvm2-8dc29d7cc7e86295116a4fb401315896b6793fa8.tar.gz |
vgimportclone.sh: drop extra $
$/${} is unnecessary on arithmetic variables.
Diffstat (limited to 'scripts/vgimportclone.sh')
-rwxr-xr-x | scripts/vgimportclone.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vgimportclone.sh b/scripts/vgimportclone.sh index 48ac6ce12..ac52f01a8 100755 --- a/scripts/vgimportclone.sh +++ b/scripts/vgimportclone.sh @@ -50,7 +50,7 @@ function getvgname { while [[ "${VGLIST}" =~ ":${NAME}:" ]] do - I=$(($I+1)) + I=$(( I + 1 )) NAME="${BNAME}$I" done echo "${NAME}" @@ -201,7 +201,7 @@ do then ln -s "$ARG" "${TMP_LVM_SYSTEM_DIR}/vgimport${DEVNO}" DISKS="${DISKS} ${TMP_LVM_SYSTEM_DIR}/vgimport${DEVNO}" - DEVNO=$((${DEVNO}+1)) + DEVNO=$(( DEVNO + 1 )) else die 3 "$ARG is not a block device." fi |