Source files relative to the repos root

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König
2025-04-07 14:01:47 +02:00
parent 135b0cce14
commit 5002ce8ba7
13 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -153,7 +153,7 @@ done
# If the color table file exists,
if [[ -f "${coltable}" ]]; then
# source it
# shellcheck source="../advanced/Scripts/COL_TABLE"
# shellcheck source="./advanced/Scripts/COL_TABLE"
source "${coltable}"
# Otherwise,
else
@@ -2399,7 +2399,7 @@ main() {
# /opt/pihole/utils.sh should be installed by installScripts now, so we can use it
if [ -f "${PI_HOLE_INSTALL_DIR}/utils.sh" ]; then
# shellcheck source="../advanced/Scripts/utils.sh"
# shellcheck source="./advanced/Scripts/utils.sh"
source "${PI_HOLE_INSTALL_DIR}/utils.sh"
else
printf " %b Failure: /opt/pihole/utils.sh does not exist .\\n" "${CROSS}"