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

[linux-lvm] [PATCH] Remove leading PATH to tr in lvmdump.sh



Hi,

The  lvmdump.sh script invokes tr by using the full path: /usr/bin/tr.
 This cause problems on distributions like Arch Linux where tr is in
another location, e.g. /bin/tr. As the script already use tr at
another place without using the full path (see line 139), I propose
the appended patch to remove the leading path to tr.

Thanks,
Eric


--- scripts/lvmdump.sh.old      2011-07-10 18:13:53.000000000 -0400
+++ scripts/lvmdump.sh  2011-07-10 18:14:13.000000000 -0400
@@ -76,7 +76,7 @@
        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]