__netbox{,_gunicorn}: fix shellcheck directives

This commit is contained in:
matze 2020-09-02 09:15:45 +02:00
parent dbc91cb339
commit 2805b6beff
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,8 @@ while read -r hostname; do
# shellcheck disable=SC2089
ALLOWED_HOSTS="$ALLOWED_HOSTS '$hostname',"
done < "$__object/parameter/host"
export ALLOWED_HOSTS # shellcheck disable=SC2090
# shellcheck disable=SC2090
export ALLOWED_HOSTS
if [ -f "$__object/parameter/secret-key" ]; then
SECRET_KEY=$(cat "$__object/parameter/secret-key")

View File

@ -5,7 +5,8 @@ while read -r host; do
# shellcheck disable=SC2089
HOST="$HOST '$host',"
done < "$__object/parameter/bind-to"
export HOST # shellcheck disable=SC2090
# shellcheck disable=SC2090
export HOST
# process template
mkdir "$__object/files"