Drillster / drone-volume-cache

Drone plugin for caching to a locally mounted volume
MIT License
109 stars 42 forks source link

Confirm the existence of cache directory before removing the old directory #9

Closed Esfahan closed 7 years ago

Esfahan commented 7 years ago

I think you need to add confirmation the existence of cache directory before removing the old directory. If the directory doesn't exist, The deployment is failed with drone.io.

mjwwit commented 7 years ago

Thanks for the PR! Interestingly I hadn't come across this situation yet...

Esfahan commented 7 years ago

Thanks for merging!

[FYI] I'm using CentOS7.1 as a host OS, and error is

find: ‘/cache/username/appname/1’: No such file or directory