From: Zdenek Kabelac Date: Fri, 8 Oct 2010 14:49:25 +0000 (+0000) Subject: Fix assignment of default LVM variable X-Git-Tag: v2_02_91~1502 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=0d9ed7ade3c7915abf01a47d2362623521c5850f;p=lvm2.git Fix assignment of default LVM variable Fix a typo which does not work in case LVM_BINARY is empty string. Using proper :- syntax. --- diff --git a/WHATS_NEW b/WHATS_NEW index 9f758a4af..c0baadf56 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.75 - ===================================== + Fix assignment of default value to LVM variable is fsadm. Fix support for --yes flag for fsadm. Do not execute lvresize with --dry-run option for fsadm. Fix fsadm return error code from user's break action. diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh index d10d88bea..8572c0518 100644 --- a/scripts/fsadm.sh +++ b/scripts/fsadm.sh @@ -49,7 +49,7 @@ FSCK=fsck XFS_CHECK=xfs_check # user may override lvm location by setting LVM_BINARY -LVM=${LVM_BINARY-lvm} +LVM=${LVM_BINARY:-lvm} YES=${_FSADM_YES} DRY=0