From d229f2afb568731276d39aa33da7ffce33f3db22 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 24 Aug 2022 05:43:04 -0600 Subject: [PATCH] place ver check after cd --- heavy_script.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/heavy_script.sh b/heavy_script.sh index f772cb6d..f9db3b84 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -1,14 +1,13 @@ #!/bin/bash -#Version -hs_version=$(git describe --tags) - # cd to script, this ensures the script can find the source scripts below, even when ran from a seperate directory script=$(readlink -f "$0") script_path=$(dirname "$script") script_name="heavy_script.sh" cd "$script_path" || { echo "Error: Failed to change to script directory" ; exit ; } +#Version +hs_version=$(git describe --tags) source functions/backup.sh source functions/dns.sh