diff options
author | Petr Rockai <prockai@redhat.com> | 2012-10-11 22:39:40 +0200 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2012-10-11 22:40:58 +0200 |
commit | 8557b412f679f1a9c8edb91e43b35793645c901e (patch) | |
tree | 7654004acb8482823dfd75a340c79c448b0f7e20 /scripts | |
parent | 413d91dc29a41b44c80df5ff5d054b36895718eb (diff) | |
download | lvm2-8557b412f679f1a9c8edb91e43b35793645c901e.tar.gz |
lvmdump: Fix systems with tr on PATH outside of /usr/bin.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lvmdump.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |