athena-oss / athena

An automation platform with a plugin architecture that allows you to easily create and share services.
https://athena-oss.github.io/athena/
Apache License 2.0
92 stars 25 forks source link

check for file existence before removing it #19

Closed ghost closed 7 years ago

ghost commented 7 years ago

The plugin update command removes the athena.lock to ensure that it will be re-initialized after an update. In case the plugin was never used no lock file was created so it needs to check for existance before really trying to remove the lock file.