Skip to content

Commit

Permalink
Fix issue with SSHFS_PASSWORD containing special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Dedden authored and Jonas Dedden committed Dec 24, 2022
1 parent 80c5708 commit 9de962e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion borg-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=''
Expand Down

0 comments on commit 9de962e

Please sign in to comment.