From 5f3ebd5b9d1b59db9241eb82f1f1688d71dabce3 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Fri, 11 Feb 2022 10:27:35 +0100 Subject: [PATCH] resticw: fix install prefix --- bin/resticw | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/resticw b/bin/resticw index 843ef34..c0fa747 100755 --- a/bin/resticw +++ b/bin/resticw @@ -125,7 +125,7 @@ eval "$(docopt "$@")" # See https://github.com/andsens/docopt.sh for the magic : # Exit on error, unbound variable, pipe error set -euo pipefail -ENV_DIR=/etc/restic +ENV_DIR=$INSTALL_PREFIX/etc/restic ERR_NO_SUCH_PROFILE=2 ERR_PROFILE_NO_READ_PERM=3 @@ -144,4 +144,3 @@ echo -e "‣ Using profile: ${__profile} -- (${profile_file})\n" # shellcheck disable=SC2154,SC1090 source "$profile_file" && restic "${_restic_arguments_line_[@]}" -