Always remove * directory

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-23 21:13:07 -04:00
parent c539d2d8a3
commit 07e6a7d062
2 changed files with 4 additions and 4 deletions

4
config
View File

@@ -16,3 +16,7 @@ export PLUGIN_BASE_PATH="$PLUGIN_PATH"
if [[ -n $DOKKU_API_VERSION ]]; then
export PLUGIN_BASE_PATH="$PLUGIN_ENABLED_PATH"
fi
if [[ -d "$PLUGIN_DATA_ROOT/*" ]]; then
rm -rf "${PLUGIN_DATA_ROOT:?}/*"
fi