Fix all shellcheck warnings

This commit is contained in:
Ayaz Salikhov
2021-05-21 15:49:49 +03:00
parent 3734d39090
commit c0ae562059
9 changed files with 19 additions and 11 deletions

View File

@@ -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 "$@"