diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 18:54:26 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 22:23:16 +0200 |
commit | afa0bd916e9b54530ad2eb99373c836c5396ea4f (patch) | |
tree | f7f42a3446986a52619f73bc989e13f476784a9e | |
parent | ef4506069a1a29cd00532e36c24df9a01cd32600 (diff) | |
download | lvm2-afa0bd916e9b54530ad2eb99373c836c5396ea4f.tar.gz |
vgimportclone.sh: do not quote regex
Don't quote rhs of =~, it'll match literally rather than as a regex.
-rwxr-xr-x | scripts/vgimportclone.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vgimportclone.sh b/scripts/vgimportclone.sh index 7d3118fcb..783857e62 100755 --- a/scripts/vgimportclone.sh +++ b/scripts/vgimportclone.sh @@ -48,7 +48,7 @@ function getvgname { NAME="${BNAME}" I=0 - while [[ "${VGLIST}" =~ ":${NAME}:" ]] + while [[ "${VGLIST}" =~ :${NAME}: ]] do I=$(( I + 1 )) NAME="${BNAME}$I" |