[PC-BSD Commits] r8017 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Wed Nov 10 13:46:17 PST 2010


Author: kris
Date: 2010-11-10 13:46:16 -0800 (Wed, 10 Nov 2010)
New Revision: 8017

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Cleanup some redirects from pbid



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-11-10 21:06:22 UTC (rev 8016)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-11-10 21:46:16 UTC (rev 8017)
@@ -2796,8 +2796,8 @@
 do_pbid() {
 
 	# Set verbosity 
-	_redir=""
-	if [ "${PBI_VERBOSE}" = "YES" ] ; then _redir=">/dev/null 2>/dev/null" ; fi
+	_redir="&1"
+	if [ "${PBI_VERBOSE}" != "YES" ] ; then _redir=">/dev/null" ; fi
 
 	while
 	i=1
@@ -2805,7 +2805,7 @@
 		# Check if we have a dirty hash-dir to cleanup
 		if [ -e "${PBI_DBDIRTYFILE}" ] ; then
 			init_tmpdir
-			pbi_clean_hashdir ${_redir}
+			pbi_clean_hashdir >${_redir} 2>${_redir}
 			rm ${PBI_DBDIRTYFILE} >/dev/null 2>/dev/null
 			rm_tmpdir
 		fi
@@ -2828,7 +2828,7 @@
 				fi
 
 				# Lets start this hash merge
-				pbi_add_update_hashdir "${_hpbipath}" ${_redir}
+				pbi_add_update_hashdir "${_hpbipath}" >${_redir} 2>${_redir}
 				
 				# Now remove the trigger file
 				rm ${PBI_DBHASHQUEUEDIR}/${_hpbi}



More information about the Commits mailing list