]> sourceware.org Git - lvm2.git/commitdiff
lvmdump: Fix systems with tr on PATH outside of /usr/bin.
authorPetr Rockai <prockai@redhat.com>
Thu, 11 Oct 2012 20:39:40 +0000 (22:39 +0200)
committerPetr Rockai <prockai@redhat.com>
Thu, 11 Oct 2012 20:40:58 +0000 (22:40 +0200)
scripts/lvmdump.sh

index 5e764f25ec7f608be1eb30d9e84430e7edc24cca..59018923a7384c98811e027ffcc678b60b4ebb97 100755 (executable)
@@ -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
This page took 0.039905 seconds and 5 git commands to generate.