Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Expand to export basic glob #4

Open
golmansax opened this issue Aug 15, 2017 · 1 comment
Open

Expand to export basic glob #4

golmansax opened this issue Aug 15, 2017 · 1 comment

Comments

@golmansax
Copy link

Hi, I like the buildpack, but my use case is to delete source maps after they get created in the build step so I need basic glob functionality.

One idea is to do something like find . -name "${GLOB}" | xargs rm. I'm happy to submit a pull request if you think this is a good route. Thanks!

@BuonOmo
Copy link

BuonOmo commented Jan 28, 2019

This would be a good route if it comes with tests I guess:

I might expand it to support file globs, but for the moment it's not necessary and the testing implications give me the willies.

Another implementation idea would be to just ls ${GLOB} | xargs rm -rf. I'm not sure find is necessary (-rf is here for folders).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants