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

@@ -18,10 +18,10 @@ set -e
# letsencrypt certificate server type (default is production).
# Set `CERT_SERVER=--staging` for staging.
: ${CERT_SERVER=''}
: "${CERT_SERVER=''}"
# Create Docker volume to contain the cert
: ${SECRETS_VOLUME:=my-notebook-secrets}
: "${SECRETS_VOLUME:=my-notebook-secrets}"
docker volume create --name $SECRETS_VOLUME 1>/dev/null
# Generate the cert and save it to the Docker volume
docker run --rm -it \

View File

@@ -3,9 +3,9 @@
# Distributed under the terms of the Modified BSD License.
# Set reasonable default VM settings
: ${VIRTUALBOX_CPUS:=4}
: "${VIRTUALBOX_CPUS:=4}"
export VIRTUALBOX_CPUS
: ${VIRTUALBOX_MEMORY_SIZE:=4096}
: "${VIRTUALBOX_MEMORY_SIZE:=4096}"
export VIRTUALBOX_MEMORY_SIZE
docker-machine create --driver virtualbox "$@"

View File

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

View File

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

View File

@@ -10,7 +10,7 @@
export NAME
# Exposed container port
: ${PORT:=80}
: "${PORT:=80}"
export PORT
# Container work volume name

View File

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