fix: fix shell error

This commit is contained in:
ttionya
2020-06-05 20:29:17 +08:00
parent 6688f66fe7
commit 3c7fef9bb1
+2 -1
View File
@@ -62,7 +62,8 @@ function init_env() {
RCLONE_REMOTE="${RCLONE_REMOTE_NAME}:${RCLONE_REMOTE_DIR}"
# ZIP_ENABLE
if [[ $(echo "${ZIP_ENABLE}" | tr '[a-z]' '[A-Z]') == "FALSE" ]]; then
ZIP_ENABLE=$(echo "${ZIP_ENABLE}" | tr '[a-z]' '[A-Z]')
if [[ "${ZIP_ENABLE}" == "FALSE" ]]; then
ZIP_ENABLE="FALSE"
else
ZIP_ENABLE="TRUE"