Moved a command that called a variable to after vars were sourced

release/full-rewrite
capntack 6 months ago
parent 9d9594f998
commit 30751e8c3f

@ -4,15 +4,15 @@
# SCRIPT PREP #
###############
# Source base directory of script and source variables
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
. "${SCRIPT_DIR}"/backupsVariables.sh
# Update restic
if [ $UPDATE = 'yes' ]; then
restic self-update
fi
# Source base directory of script and source variables
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
. "${SCRIPT_DIR}"/variables.sh
############################
# LOGGING & ERROR HANDLING #
############################
@ -65,7 +65,7 @@ fi
# Overwrite LAN restic variables with the AWS restic variables
if [ $LAN_AND_AWS_RESTIC = 'yes' ]; then
. "${SCRIPT_DIR}"/variablesAWS.sh
. "${SCRIPT_DIR}"/backupsVariablesAWS.sh
fi
# If selected, run a remote restic backup

Loading…
Cancel
Save