From 9de962e965d4029bb35e6ff79fc931d5ae4187b8 Mon Sep 17 00:00:00 2001 From: Jonas Dedden Date: Sat, 24 Dec 2022 11:00:55 +0100 Subject: [PATCH] Fix issue with SSHFS_PASSWORD containing special chars --- borg-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg-backup.sh b/borg-backup.sh index 1cd7fac..6761732 100755 --- a/borg-backup.sh +++ b/borg-backup.sh @@ -30,7 +30,7 @@ if [ -n "${SSHFS:-}" ]; then SSHFS_IDENTITY_FILE='' fi if [ -n "${SSHFS_PASSWORD:-}" ]; then - SSHFS_PASSWORD="echo ${SSHFS_PASSWORD} |" + SSHFS_PASSWORD="echo \"${SSHFS_PASSWORD}\" |" SSHFS_PASSWORD_OPT='-o password_stdin' else SSHFS_PASSWORD=''