From 09a184b3e29bf6a099501622067912884a27bba3 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 8 May 2016 15:01:56 -0400 Subject: [PATCH] ensure we don't expand PLUGIN_DATA_ROOT --- commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands b/commands index 82372a6..ad0f87a 100755 --- a/commands +++ b/commands @@ -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