From f591e37307d6d19e1afc168566a8a528e2f8a47c Mon Sep 17 00:00:00 2001 From: ttionya Date: Thu, 8 Apr 2021 00:07:33 +0800 Subject: [PATCH] fix: remove all RCLONE_REMOTE suffix slash (fixed #22) --- scripts/includes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/includes.sh b/scripts/includes.sh index ce5442b..e99b89e 100644 --- a/scripts/includes.sh +++ b/scripts/includes.sh @@ -179,7 +179,7 @@ function init_env() { RCLONE_REMOTE_DIR="${RCLONE_REMOTE_DIR:-"/BitwardenBackup/"}" # RCLONE_REMOTE - RCLONE_REMOTE="${RCLONE_REMOTE_NAME}:${RCLONE_REMOTE_DIR}" + RCLONE_REMOTE=$(echo "${RCLONE_REMOTE_NAME}:${RCLONE_REMOTE_DIR}" | sed 's@\(/*\)$@@') # ZIP_ENABLE get_env ZIP_ENABLE