From a037f0a362219b7a47c9f9cd7ad8b9332f5ebce5 Mon Sep 17 00:00:00 2001 From: squaresun <5quar3sun@gmail.com> Date: Fri, 2 Mar 2018 18:12:23 +0800 Subject: [PATCH] check PLUGIN_CHMOD if true --- upload.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upload.sh b/upload.sh index 62e3491..1e12824 100755 --- a/upload.sh +++ b/upload.sh @@ -29,7 +29,10 @@ fi if [ -z "$PLUGIN_CHMOD" ]; then PLUGIN_CHMOD="" else - PLUGIN_CHMOD="-p" + if [ "$PLUGIN_CHMOD" = true ]; then + PLUGIN_CHMOD="-p" + else + PLUGIN_CHMOD="" fi PLUGIN_EXCLUDE_STR=""