Howto remove empty dirs in post-deactivate?

Jeremy Lavergne jeremy at lavergne.gotdns.org
Wed Apr 16 15:19:28 PDT 2014


>   # purge fetch-crl cache
>   delete [ glob ${prefix}/var/cache/fetch-crl/*.state ]

You like want to foreach the glob result (or map if its defined).

foreach {filename} [ glob ${prefix}/var/cache/fetch-crl/*.state ] {
    delete $filename
}



More information about the macports-dev mailing list