From 2175e3ed1ad8567688753ca758f1efb18942677d Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Fri, 14 Mar 2025 12:41:44 +0000 Subject: [PATCH] Use shellcheck source to point the sourced file --- examples/docker-compose/notebook/build.sh | 2 +- examples/docker-compose/notebook/down.sh | 2 +- examples/docker-compose/notebook/up.sh | 2 +- images/docker-stacks-foundation/start.sh | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/docker-compose/notebook/build.sh b/examples/docker-compose/notebook/build.sh index 304d4f7a..44e2f011 100755 --- a/examples/docker-compose/notebook/build.sh +++ b/examples/docker-compose/notebook/build.sh @@ -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 diff --git a/examples/docker-compose/notebook/down.sh b/examples/docker-compose/notebook/down.sh index f0fdd707..4b6210e3 100755 --- a/examples/docker-compose/notebook/down.sh +++ b/examples/docker-compose/notebook/down.sh @@ -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 diff --git a/examples/docker-compose/notebook/up.sh b/examples/docker-compose/notebook/up.sh index c02ed3a2..9a527bdd 100755 --- a/examples/docker-compose/notebook/up.sh +++ b/examples/docker-compose/notebook/up.sh @@ -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 diff --git a/images/docker-stacks-foundation/start.sh b/images/docker-stacks-foundation/start.sh index 295ee263..7ee50635 100755 --- a/images/docker-stacks-foundation/start.sh +++ b/images/docker-stacks-foundation/start.sh @@ -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