resticw: fix install prefix

This commit is contained in:
Erik Westrup
2022-02-11 10:27:35 +01:00
parent 8111a5f663
commit 5f3ebd5b9d

View File

@@ -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_[@]}"