ensure we don't expand PLUGIN_DATA_ROOT

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-08 14:55:39 -04:00
parent cbead0b152
commit dd5fe9104b

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