From 8557b412f679f1a9c8edb91e43b35793645c901e Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Thu, 11 Oct 2012 22:39:40 +0200 Subject: [PATCH] lvmdump: Fix systems with tr on PATH outside of /usr/bin. --- scripts/lvmdump.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lvmdump.sh b/scripts/lvmdump.sh index 5e764f25e..59018923a 100755 --- a/scripts/lvmdump.sh +++ b/scripts/lvmdump.sh @@ -32,6 +32,7 @@ DATE=date BASENAME=basename UDEVADM=udevadm UNAME=uname +TR=tr # user may override lvm and dmsetup location by setting LVM_BINARY # and DMSETUP_BINARY respectively @@ -80,7 +81,7 @@ while getopts :acd:hmu opt; do esac done -NOW=`$DATE -u +%G%m%d%k%M%S | /usr/bin/tr -d ' '` +NOW=`$DATE -u +%G%m%d%k%M%S | $TR -d ' '` if test -n "$userdir"; then dir="$userdir" else -- 2.43.5