1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-28 02:50:41 +03:00

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

This commit is contained in:
Petr Rockai 2012-10-11 22:39:40 +02:00
parent 413d91dc29
commit 8557b412f6

View File

@ -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