From 5969e57e2bc3a5267f300e16407d1d6b1db912e3 Mon Sep 17 00:00:00 2001 From: squaresun <5quar3sun@gmail.com> Date: Mon, 5 Mar 2018 09:59:44 +0800 Subject: [PATCH] refining the chmod condition --- upload.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/upload.sh b/upload.sh index e0b5eee..a256208 100755 --- a/upload.sh +++ b/upload.sh @@ -26,14 +26,10 @@ if [ -z "$PLUGIN_SRC_DIR" ]; then PLUGIN_SRC_DIR="/" fi -if [ -z "$PLUGIN_CHMOD" ]; then - PLUGIN_CHMOD="" +if [ "$PLUGIN_CHMOD" = false ]; then + PLUGIN_CHMOD="-p" else - if [ "$PLUGIN_CHMOD" = true ]; then - PLUGIN_CHMOD="" - else - PLUGIN_CHMOD="-p" - fi + PLUGIN_CHMOD="" fi PLUGIN_EXCLUDE_STR=""