From 3b87f0192440b3569a2994886b99a08d1f9e42c0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 6 Jun 2019 23:11:50 -0300 Subject: Use ${DOLLAR}{VAR} to double scape bash variable in .env templates --- scripts/box/restore-backup.env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/box') diff --git a/scripts/box/restore-backup.env.sh b/scripts/box/restore-backup.env.sh index 14d462d..0c6fdca 100755 --- a/scripts/box/restore-backup.env.sh +++ b/scripts/box/restore-backup.env.sh @@ -6,12 +6,12 @@ export BORG_PASSPHRASE="${BORG_PASSPHRASE}" pushd "$(mktemp -d)" || exit 1 ARCHIVE="$(borg list "${BORG_REPO}" --last 1 --short)" -echo "Extracting archive ${ARCHIVE}" +echo "Extracting archive ${DOLLAR}{ARCHIVE}" borg extract \ --verbose \ --stats \ --progress \ - "${BORG_REPO}"::"${ARCHIVE}" + "${BORG_REPO}"::"${DOLLAR}{ARCHIVE}" echo "Done." mv home/vps/volumes/* /home/vps/volumes/ -- cgit v1.2.3