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

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

@ -4,15 +4,15 @@
# SCRIPT PREP # # 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 # Update restic
if [ $UPDATE = 'yes' ]; then if [ $UPDATE = 'yes' ]; then
restic self-update restic self-update
fi 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 # # LOGGING & ERROR HANDLING #
############################ ############################
@ -65,7 +65,7 @@ fi
# Overwrite LAN restic variables with the AWS restic variables # Overwrite LAN restic variables with the AWS restic variables
if [ $LAN_AND_AWS_RESTIC = 'yes' ]; then if [ $LAN_AND_AWS_RESTIC = 'yes' ]; then
. "${SCRIPT_DIR}"/variablesAWS.sh . "${SCRIPT_DIR}"/backupsVariablesAWS.sh
fi fi
# If selected, run a remote restic backup # If selected, run a remote restic backup

Loading…
Cancel
Save