mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Lint
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=
|
||||
set -e
|
||||
|
||||
####################
|
||||
# MOUNT SMB SHARES #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155,SC1087,SC2163,SC2116,SC2086
|
||||
set -e
|
||||
|
||||
##################
|
||||
# INITIALIZATION #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2046
|
||||
set -e
|
||||
|
||||
# Define user
|
||||
PUID=$(bashio::config "PUID")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2015
|
||||
set -e
|
||||
|
||||
# Install specific apps
|
||||
if bashio::config.has_value 'additional_apps'; then
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2015
|
||||
set -e
|
||||
|
||||
# Set TZ
|
||||
if bashio::config.has_value 'TZ'; then
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155
|
||||
set -e
|
||||
|
||||
#####################
|
||||
# Autodiscover mqtt #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155
|
||||
set -e
|
||||
|
||||
#####################
|
||||
# Autodiscover mqtt #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155,SC2016
|
||||
set -e
|
||||
|
||||
###################################
|
||||
# Export all addon options as env #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155
|
||||
set -e
|
||||
|
||||
bashio::log.warning "Warning - minimum configuration recommended : 2 cpu cores and 4 GB of memory. Otherwise the system will become unresponsive and crash."
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2086
|
||||
set -e
|
||||
|
||||
# Runs only after initialization done
|
||||
# shellcheck disable=SC2128
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155
|
||||
set -e
|
||||
|
||||
####################
|
||||
# Define variables #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2015
|
||||
set -e
|
||||
|
||||
if bashio::config.has_value 'graphic_drivers'; then
|
||||
GRAPHIC_DRIVERS="$(bashio::config 'graphic_drivers')"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155,SC2015
|
||||
set -e
|
||||
|
||||
###########
|
||||
# SCRIPTS #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2317
|
||||
set -e
|
||||
|
||||
#################
|
||||
# NGINX SETTING #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155,SC2016
|
||||
set -e
|
||||
|
||||
###################################
|
||||
# Export all addon options as env #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155
|
||||
set -e
|
||||
|
||||
#####################
|
||||
# Export env values #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2046
|
||||
set -e
|
||||
|
||||
# Define user
|
||||
PUID=$(bashio::config "PUID")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2015
|
||||
set -e
|
||||
|
||||
# Install specific apps
|
||||
if bashio::config.has_value 'additional_apps'; then
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# shellcheck disable=SC2155
|
||||
set -e
|
||||
|
||||
##############
|
||||
# CLOUDFLARE #
|
||||
|
||||
Reference in New Issue
Block a user