Stop addon if failure

This commit is contained in:
Alexandre
2023-03-04 07:36:32 +01:00
committed by GitHub
parent 793d0b12df
commit 1cd853c0cb

View File

@@ -70,7 +70,7 @@ if bashio::config.has_value 'localdisks'; then
# shellcheck disable=SC2015
mount -t $type "$devpath"/"$disk" "$dirpath"/"$disk" -o $options && bashio::log.info "Success! $disk mounted to /mnt/$disk" || \
(bashio::log.fatal "Unable to mount local drives! Please check the name." && rmdir /mnt/$disk)
(bashio::log.fatal "Unable to mount local drives! Please check the name." && rmdir /mnt/$disk && bashio::addon.stop)
done
fi