[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] master - lvmdump: Fix systems with tr on PATH outside of /usr/bin.



Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8557b412f679f1a9c8edb91e43b35793645c901e
Commit:        8557b412f679f1a9c8edb91e43b35793645c901e
Parent:        413d91dc29a41b44c80df5ff5d054b36895718eb
Author:        Petr Rockai <prockai redhat com>
AuthorDate:    Thu Oct 11 22:39:40 2012 +0200
Committer:     Petr Rockai <prockai redhat com>
CommitterDate: Thu Oct 11 22:40:58 2012 +0200

lvmdump: Fix systems with tr on PATH outside of /usr/bin.

---
 scripts/lvmdump.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/lvmdump.sh b/scripts/lvmdump.sh
index 5e764f2..5901892 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]