fix mistakes with include pathing

This commit is contained in:
Kjeld Schouten-Lebbing 2022-06-14 22:12:33 +02:00
parent ff6a406fd9
commit 5bedc2119e
No known key found for this signature in database
GPG Key ID: 3D586240A9175B99

View File

@ -8,6 +8,8 @@ dir=$(basename "$SCRIPT_DIR")
enableUpdate="true" enableUpdate="true"
targetRepo="https://github.com/truecharts/truetool.git" targetRepo="https://github.com/truecharts/truetool.git"
# CD to the folder containing the script to ensure consistent runs
cd "${SCRIPT_DIR}" || echo -e "ERROR: Something went wrong accessing the script directory"
# Includes # Includes
# shellcheck source=includes/backup.sh # shellcheck source=includes/backup.sh
@ -31,9 +33,6 @@ source includes/update.sh
# shellcheck source=includes/update_self.sh # shellcheck source=includes/update_self.sh
source includes/update_self.sh source includes/update_self.sh
# CD to the folder containing the script to ensure consistent runs
cd "${SCRIPT_DIR}" || echo -e "${IRed}ERROR: Something went wrong accessing the script directory${Color_Off}"
title title
[[ "$enableUpdate" == "true" ]] && updater "$@" [[ "$enableUpdate" == "true" ]] && updater "$@"