master - vgimportclone.sh: drop extra $
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8dc29d7cc7e86295116a4fb401315896b6793fa8 Commit: 8dc29d7cc7e86295116a4fb401315896b6793fa8 Parent: 16a38dede95cbcd7bfd80bb2124ce205a20c5a2f Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Jun 28 20:31:09 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Jun 29 22:23:16 2017 +0200
vgimportclone.sh: drop extra $
$/${} is unnecessary on arithmetic variables.
--- scripts/vgimportclone.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/vgimportclone.sh +2 -2
@@ -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