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,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