[151233] contrib/mp-buildbot/mpbb-cleanup

ryandesign at macports.org ryandesign at macports.org
Wed Aug 10 16:56:10 PDT 2016


Revision: 151233
          https://trac.macports.org/changeset/151233
Author:   ryandesign at macports.org
Date:     2016-08-10 16:56:10 -0700 (Wed, 10 Aug 2016)
Log Message:
-----------
mp-buildbot: fix quoting in cleanup

Modified Paths:
--------------
    contrib/mp-buildbot/mpbb-cleanup

Modified: contrib/mp-buildbot/mpbb-cleanup
===================================================================
--- contrib/mp-buildbot/mpbb-cleanup	2016-08-10 23:50:11 UTC (rev 151232)
+++ contrib/mp-buildbot/mpbb-cleanup	2016-08-10 23:56:10 UTC (rev 151233)
@@ -23,12 +23,12 @@
     echo
     for dir in build logs; do
         echo "----> Deleting ${dir}"
-        ports="$(find ${option_prefix}/var/macports/${dir} -name '.*' -prune -o -depth 2 -type d -print | sed 's,^.*/,,' | sort -fu)"
+        ports="$(find "${option_prefix}/var/macports/${dir}" -name '.*' -prune -o -depth 2 -type d -print | sed 's,^.*/,,' | sort -fu)"
         for port in ${ports}; do
             echo "Deleting ${dir} for ${port}"
-            rm -rf ${option_prefix}/var/macports/${dir}/*/${port}
+            rm -rf "${option_prefix}/var/macports/${dir}"/*/"${port}"
         done
-        rm -rf "${option_prefix}/var/macports/${dir}/*"
+        rm -rf "${option_prefix}/var/macports/${dir}"/*
         echo
     done
   }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160810/a9777c96/attachment.html>


More information about the macports-changes mailing list