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

svn at pcbsd.org svn at pcbsd.org
Thu Jul 5 11:42:20 PDT 2012


Author: kris
Date: 2012-07-05 18:42:20 +0000 (Thu, 05 Jul 2012)
New Revision: 17645

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

Don't try to display archive contents when doing pbi_info -v



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-07-05 18:35:10 UTC (rev 17644)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-07-05 18:42:20 UTC (rev 17645)
@@ -2739,11 +2739,13 @@
 
 	# If verbose mode, show file contents
 	if [ "$PBI_VERBOSE" = "YES" ] ; then
-	  	pbi_find_archive_header
-                echo "TOTALFILES: ${PBI_ARCHIVE_COUNT}"
-                echo "Archive Contents:"
-                echo "--------------------------------------"
-                tail +$PBI_SKIP_ARCHLINES "${PBI_FILENAME}" | tar tvf - 
+		if [ -n "${PBI_FILENAME}" -a -e "${PBI_FILENAME}" ] ; then
+	  		pbi_find_archive_header
+                	echo "TOTALFILES: ${PBI_ARCHIVE_COUNT}"
+                	echo "Archive Contents:"
+                	echo "--------------------------------------"
+                	tail +$PBI_SKIP_ARCHLINES "${PBI_FILENAME}" | tar tvf - 
+		fi
         fi
 }
 



More information about the Commits mailing list