mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Stop addon if failure
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user