refining the chmod condition

This commit is contained in:
squaresun 2018-03-05 09:59:44 +08:00 committed by dominic
parent 3f5d32cffe
commit 5969e57e2b

View File

@ -26,14 +26,10 @@ if [ -z "$PLUGIN_SRC_DIR" ]; then
PLUGIN_SRC_DIR="/" PLUGIN_SRC_DIR="/"
fi fi
if [ -z "$PLUGIN_CHMOD" ]; then if [ "$PLUGIN_CHMOD" = false ]; then
PLUGIN_CHMOD="" PLUGIN_CHMOD="-p"
else else
if [ "$PLUGIN_CHMOD" = true ]; then PLUGIN_CHMOD=""
PLUGIN_CHMOD=""
else
PLUGIN_CHMOD="-p"
fi
fi fi
PLUGIN_EXCLUDE_STR="" PLUGIN_EXCLUDE_STR=""