Add set -e

This commit is contained in:
Alexandre
2023-10-03 20:02:29 +02:00
committed by GitHub
parent ecf0229464
commit c55f3c6752
186 changed files with 194 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -e
# If dockerfile failed install manually

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
# ==============================================================================
# Displays a simple add-on banner on startup
# ==============================================================================

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
###################################
# Export all addon options as env #

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
######################
# MOUNT LOCAL SHARES #

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
# shellcheck disable=
####################
@@ -20,7 +21,7 @@ if bashio::config.has_value 'networkdisks'; then
####################
# Define variables #
####################
# Set variables
MOREDISKS=$(bashio::config 'networkdisks')
USERNAME=$(bashio::config 'cifsusername')
@@ -57,7 +58,7 @@ if bashio::config.has_value 'networkdisks'; then
##################
# Mounting disks #
##################
# shellcheck disable=SC2086
for disk in ${MOREDISKS//,/ }; do # Separate comma separated values
@@ -145,7 +146,7 @@ if bashio::config.has_value 'networkdisks'; then
&& MOUNTED=true && MOUNTOPTIONS="$SMBVERS$SECVERS$PUIDPGID$CHARSET$DOMAIN" || MOUNTED=false
fi
done
fi
# Messages

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
slug="${HOSTNAME#*-}"
bashio::log.info "Execute /config/addons_autoscripts/${slug}.sh if existing"

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
# shellchek disable=SC2015
JSONTOCHECK='/config/transmission/settings.json'

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
# shellcheck disable=SC2155,SC1087,SC2163,SC2116,SC2086
##################

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
# Disables ingress and sets a default index

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
###############
# DNS SETTING #

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
###############
# SILENT MODE #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio
set -e
if bashio::config.has_value "graphic_driver"; then

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
CONFIGSOURCE="$(dirname "${CONFIGSOURCE}")"

View File

@@ -1,5 +1,6 @@
#!/bin/sh
# shellcheck disable=SC2015
set -e
##############################
# Automatic apps download #

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -e
########
# INIT #

View File

@@ -1,5 +1,6 @@
#!/bin/sh
# shellcheck disable=SC2015
set -e
##############################
# Automatic modules download #

View File

@@ -1,5 +1,6 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
set -e
echo "Starting..."
####################

View File

@@ -1,4 +1,5 @@
#!/bin/sh
set -e
##########################################
# Global modifications before entrypoint #

View File

@@ -1,5 +1,6 @@
#!/bin/sh
# shellcheck disable=SC2013,SC2016,SC2236
set -e
#############################
# Modify global lsio images #