mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
Clean Code
This commit is contained in:
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
# MOUNT LOCAL SHARES #
|
# MOUNT LOCAL SHARES #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
echo 'Mounting external hdd...'
|
|
||||||
|
|
||||||
# Mount local Share if configured
|
# Mount local Share if configured
|
||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
|
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting..."
|
echo "Local Disks mounting..."
|
||||||
|
|
||||||
# Separate comma separated values
|
# Separate comma separated values
|
||||||
for disk in ${MOREDISKS//,/ }; do
|
for disk in ${MOREDISKS//,/ }; do
|
||||||
|
|||||||
Reference in New Issue
Block a user