From 85f149288d04dd2eca7d476135f362b073d0b437 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 7 Jun 2019 00:04:23 -0300 Subject: Disable SC2034 for ${DOLLAR} interpolated variable --- scripts/box/restore-backup.env.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/box/restore-backup.env.sh') diff --git a/scripts/box/restore-backup.env.sh b/scripts/box/restore-backup.env.sh index 5eb575b..99b807c 100755 --- a/scripts/box/restore-backup.env.sh +++ b/scripts/box/restore-backup.env.sh @@ -12,6 +12,9 @@ export BORG_REMOTE_PATH="${BORG_REMOTE_PATH}" export BORG_PASSPHRASE="${BORG_PASSPHRASE}" pushd "$(mktemp -d)" || exit 1 + +# It is actually being used below using the DOLLAR interpolation +# shellcheck disable=SC2034 ARCHIVE="$(borg list "${BORG_REPO}" --last 1 --short)" echo "Extracting archive ${DOLLAR}{ARCHIVE}" -- cgit v1.2.3