From e43ddfb93793840c540e3415ec5e0bfa023df6ec Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 15 Apr 2023 07:45:29 +0200 Subject: [PATCH] Update 00-smb_mounts.sh --- .templates/00-smb_mounts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index 356bc66c9..9ac798c26 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -55,15 +55,15 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." - break + break 2 fi # Does server exists server="$(echo "$disk" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")" if ping -w 1 -c 1 8.8.8.8 >/dev/null; then ping -w 5 -c 1 "$server" >/dev/null || \ - ( bashio::log.fatal "Your server $server from $disk doesn't ping, is it correct?" && \ - break 2 ) + { bashio::log.fatal "Your server $server from $disk doesn't ping, is it correct?"; \ + break 2 } fi # Prepare mount point