Update run

This commit is contained in:
Alexandre
2021-02-23 09:28:10 +01:00
committed by GitHub
parent 23ca74b0ea
commit 45fa432af7

View File

@@ -29,7 +29,6 @@ if bashio::config.has_value 'networkdisks'; then
# Mounting disks
for disk in ${MOREDISKS//,/ }; do # Separate comma separated values
ping $disk || {bashio::log.error "Disk unreachable. Check that name is correct (//ip/share)"} # Check if name correct
disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name
diskname=${disk##*/} # Get only last part of the name
rm -r /mnt/$diskname 2>/dev/null || true # Create dir