From 0d9ed7ade3c7915abf01a47d2362623521c5850f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 8 Oct 2010 14:49:25 +0000 Subject: [PATCH] Fix assignment of default LVM variable Fix a typo which does not work in case LVM_BINARY is empty string. Using proper :- syntax. --- WHATS_NEW | 1 + scripts/fsadm.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.5