Use shellcheck source to point the sourced file

This commit is contained in:
Ayaz Salikhov
2025-03-14 12:41:44 +00:00
parent 81bb00eb4a
commit 2175e3ed1a
4 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Setup environment
# shellcheck disable=SC1091
# shellcheck source=examples/docker-compose/notebook/env.sh
source "${DIR}/env.sh"
# Build the notebook image

View File

@@ -5,7 +5,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Setup environment
# shellcheck disable=SC1091
# shellcheck source=examples/docker-compose/notebook/env.sh
source "${DIR}/env.sh"
# Bring down the notebook container, using container name as project name

View File

@@ -58,7 +58,7 @@ else
fi
# Setup environment
# shellcheck disable=SC1091
# shellcheck source=examples/docker-compose/notebook/env.sh
source "${DIR}/env.sh"
# Create a Docker volume to store notebooks

View File

@@ -46,7 +46,7 @@ fi
# NOTE: This hook will run as the user the container was started with!
# shellcheck disable=SC1091
# shellcheck source=images/docker-stacks-foundation/run-hooks.sh
source /usr/local/bin/run-hooks.sh /usr/local/bin/start-notebook.d
# If the container started as the root user, then we have permission to refit
@@ -150,7 +150,7 @@ if [ "$(id -u)" == 0 ]; then
fi
# NOTE: This hook is run as the root user!
# shellcheck disable=SC1091
# shellcheck source=images/docker-stacks-foundation/run-hooks.sh
source /usr/local/bin/run-hooks.sh /usr/local/bin/before-notebook.d
unset_explicit_env_vars
@@ -251,7 +251,7 @@ else
fi
# NOTE: This hook is run as the user we started the container as!
# shellcheck disable=SC1091
# shellcheck source=images/docker-stacks-foundation/run-hooks.sh
source /usr/local/bin/run-hooks.sh /usr/local/bin/before-notebook.d
unset_explicit_env_vars