From d5497b04b438705efd7ed797d146319fe62984c1 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Fri, 29 Apr 2022 17:57:33 +0200 Subject: [PATCH] Add missing $INSTALL_PREFIX in help text --- bin/restic_backup.sh | 2 +- bin/restic_check.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/restic_backup.sh b/bin/restic_backup.sh index 976f32c..d84d742 100644 --- a/bin/restic_backup.sh +++ b/bin/restic_backup.sh @@ -28,7 +28,7 @@ assert_envvars() { local varnames=("$@") for varname in "${varnames[@]}"; do if [ -z ${!varname+x} ]; then - printf "%s must be set for this script to work.\n\nDid you forget to source a /etc/restic/*.env.sh profile in the current shell before executing this script?\n" "$varname" >&2 + printf "%s must be set for this script to work.\n\nDid you forget to source a $INSTALL_PREFIX/etc/restic/*.env.sh profile in the current shell before executing this script?\n" "$varname" >&2 exit 1 fi done diff --git a/bin/restic_check.sh b/bin/restic_check.sh index 6d72ee9..728e5fd 100644 --- a/bin/restic_check.sh +++ b/bin/restic_check.sh @@ -20,7 +20,7 @@ assert_envvars() { local varnames=("$@") for varname in "${varnames[@]}"; do if [ -z ${!varname+x} ]; then - printf "%s must be set for this script to work.\n\nDid you forget to source a /etc/restic/*.env.sh profile in the current shell before executing this script?\n" "$varname" >&2 + printf "%s must be set for this script to work.\n\nDid you forget to source a $INSTALL_PREFIX/etc/restic/*.env.sh profile in the current shell before executing this script?\n" "$varname" >&2 exit 1 fi done