Author: doogie
Date: Sat Apr 18 05:36:06 2009
New Revision: 766218
URL:
http://svn.apache.org/viewvc?rev=766218&view=revLog:
Redirect dd output to /dev/null.
Modified:
ofbiz/trunk/debian/ofbiz-framework.postinst
Modified: ofbiz/trunk/debian/ofbiz-framework.postinst
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/debian/ofbiz-framework.postinst?rev=766218&r1=766217&r2=766218&view=diff==============================================================================
--- ofbiz/trunk/debian/ofbiz-framework.postinst (original)
+++ ofbiz/trunk/debian/ofbiz-framework.postinst Sat Apr 18 05:36:06 2009
@@ -125,7 +125,7 @@
chars=""
while :; do
needed_length=$((${length} - ${#chars}))
- chars="$chars$(dd if=/dev/urandom count="${needed_length}" bs=1 | sed -n -e 's/[^[:alnum:]]//g;p;q')"
+ chars="$chars$(dd if=/dev/urandom count="${needed_length}" bs=1 2>/dev/null | sed -n -e 's/[^[:alnum:]]//g;p;q')"
if [ "${#chars}" -ge "$length" ]; then
break
fi