ensure we don't expand PLUGIN_DATA_ROOT

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-08 14:58:11 -04:00
parent 3ce4c65705
commit 6067516ea7

View File

@@ -15,7 +15,7 @@ if [[ ! -d $PLUGIN_DATA_ROOT ]]; then
fi
if [[ -d "$PLUGIN_DATA_ROOT/*" ]]; then
rm -rf "$PLUGIN_DATA_ROOT/*"
rm -rf "${PLUGIN_DATA_ROOT:?}/*"
fi
case "$1" in