mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 06:52:56 +00:00
Fix all shellcheck warnings
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
set -e
|
||||
|
||||
# set default ip to 0.0.0.0
|
||||
if [[ "$NOTEBOOK_ARGS $@" != *"--ip="* ]]; then
|
||||
if [[ "$NOTEBOOK_ARGS $*" != *"--ip="* ]]; then
|
||||
NOTEBOOK_ARGS="--ip=0.0.0.0 $NOTEBOOK_ARGS"
|
||||
fi
|
||||
|
||||
@@ -14,6 +14,7 @@ fi
|
||||
# These won't be passed from DockerSpawner 0.9,
|
||||
# so avoid specifying --arg=empty-string
|
||||
if [ -n "$NOTEBOOK_DIR" ]; then
|
||||
# shellcheck disable=SC2089
|
||||
NOTEBOOK_ARGS="--notebook-dir='$NOTEBOOK_DIR' $NOTEBOOK_ARGS"
|
||||
fi
|
||||
if [ -n "$JPY_PORT" ]; then
|
||||
@@ -36,4 +37,5 @@ if [ -n "$JPY_HUB_API_URL" ]; then
|
||||
fi
|
||||
NOTEBOOK_BIN="jupyterhub-singleuser"
|
||||
|
||||
# shellcheck disable=SC1091,SC2086,SC2090
|
||||
. /usr/local/bin/start.sh "$NOTEBOOK_BIN" $NOTEBOOK_ARGS "$@"
|
||||
|
Reference in New Issue
Block a user