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

svn at pcbsd.org svn at pcbsd.org
Mon Nov 7 10:53:22 PST 2011


Author: kris
Date: 2011-11-07 10:53:22 -0800 (Mon, 07 Nov 2011)
New Revision: 13732

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

Fix some needless errors / warnings when running via sudo



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-11-07 16:26:33 UTC (rev 13731)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-11-07 18:53:22 UTC (rev 13732)
@@ -3316,7 +3316,7 @@
 		fi
 	done < ${tmp_hashdir}
 	rm ${tmp_hashdir}
-	cd ~
+	cd /
 }
 
 # Parse any external link directives
@@ -3771,7 +3771,7 @@
 
 # Remove the stagedir
 rm_stage_dir() {
-	cd ~
+	cd /
 	PBI_STAGEDIR="${PBI_PROGDIRPATH}/.stagedir"
 	if [ -e "${PBI_STAGEDIR}" ] ; then 
 		rm -rf "${PBI_STAGEDIR}" 2>/dev/null



More information about the Commits mailing list