diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-21 18:02:50 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-21 21:03:47 +0200 |
commit | bb6fd1a15f32d79ddaa351704dea47ad9e5ab9be (patch) | |
tree | a0fc512de23cfc1ea5b576eaea9f0b0e6864f366 /scripts | |
parent | 5bd99d55b023f1e105bea6033aa57db3987f2ba5 (diff) | |
download | lvm2-bb6fd1a15f32d79ddaa351704dea47ad9e5ab9be.tar.gz |
shellcheck: warning enhancements
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lvm_import_vdo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lvm_import_vdo.sh b/scripts/lvm_import_vdo.sh index af7917b0c..61a82e41e 100755 --- a/scripts/lvm_import_vdo.sh +++ b/scripts/lvm_import_vdo.sh @@ -262,7 +262,7 @@ convert2lvm_() { if [ -z "$VGNAME" ] || [ "$VGNAME" = "$LVNAME" ] ; then VGNAME=${DEFAULT_NAME%/*} # Find largest matching VG name to our 'default' vgname - LASTVGNAME=$(LC_ALL=C "$LVM" vgs -oname -O-name --noheadings -S name=~${VGNAME} | grep -E "$VGNAME[0-9]? ?" | head -1 || true) + LASTVGNAME=$(LC_ALL=C "$LVM" vgs -oname -O-name --noheadings -S name=~${VGNAME} | grep -E "${VGNAME}[0-9]? ?" | head -1 || true) if test -n "$LASTVGNAME" ; then LASTVGNAME=${LASTVGNAME#*${VGNAME}} # If the number is becoming too high, try some random number |