[PC-BSD Commits] r21454 - pcbsd/current/src-sh/pc-extractoverlay

svn at pcbsd.org svn at pcbsd.org
Mon Feb 11 12:08:43 PST 2013


Author: kris
Date: 2013-02-11 20:08:43 +0000 (Mon, 11 Feb 2013)
New Revision: 21454

Modified:
   pcbsd/current/src-sh/pc-extractoverlay/pc-extractoverlay
Log:

Fix a bug pruning old desktop files



Modified: pcbsd/current/src-sh/pc-extractoverlay/pc-extractoverlay
===================================================================
--- pcbsd/current/src-sh/pc-extractoverlay/pc-extractoverlay	2013-02-11 19:08:30 UTC (rev 21453)
+++ pcbsd/current/src-sh/pc-extractoverlay/pc-extractoverlay	2013-02-11 20:08:43 UTC (rev 21454)
@@ -11,7 +11,8 @@
      echo $pLine | grep -q "^#"
      if [ $? -eq 0 ] ; then continue ; fi
 
-     if [ -e "${pLine}" ] ; then
+     ls ${pLine} >/dev/null 2>/dev/null
+     if [ $? -eq 0 ] ; then
         echo "Pruning: $pLine"
         rm ${pLine}
      fi



More information about the Commits mailing list