From 2bbcad6dc6c76680ef9f1f944ac932663334e225 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 3 May 2021 15:27:20 +0200 Subject: [PATCH] fix action --- home.admin/config.scripts/blitz.upload.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/config.scripts/blitz.upload.sh b/home.admin/config.scripts/blitz.upload.sh index 8880c6ab6..372cce1d4 100644 --- a/home.admin/config.scripts/blitz.upload.sh +++ b/home.admin/config.scripts/blitz.upload.sh @@ -26,7 +26,7 @@ fi # 1st PRAMETER action action="$1" -if [ ${action} = "prepare-upload" ]; then +if [ "${action}" == "prepare-upload" ]; then # make sure that temp directory exists, is clear and can be written by ${defaultUploadUser} sudo mkdir -p ${defaultUploadPath} 2>/dev/null @@ -39,7 +39,7 @@ if [ ${action} = "prepare-upload" ]; then exit 0 fi -if [ ${action} = "check-upload" ]; then +if [ "${action}" ="" "check-upload" ]; then # 2nd PARAMETER is type of upload (optional) type=$2