Update 92-local_mounts.sh

This commit is contained in:
Alexandre
2023-03-04 22:28:53 +01:00
committed by GitHub
parent b2a21f779e
commit ebab33560d

View File

@@ -5,7 +5,8 @@
# LIST LOCAL DISKS #
####################
function list_drives (bashio::log.info "List of available labels (@dianlight)"
function list_drives () {
bashio::log.info "List of available labels (@dianlight)"
bashio::log.blue "---------------------------------------------------"
#autodisks=($(lsblk -E label -n -o label | sed -r '/^\s*$/d' | grep -v hassos | grep pp))
readarray -t autodisks < <(lsblk -E label -n -o label -i | sed -r '/^\s*$/d' | grep -v hassos)
@@ -17,7 +18,8 @@ else
bashio::log.info "\t${disk}[$(lsblk $(blkid -L "$disk") -no fstype)]"
done
fi
bashio::log.blue "---------------------------------------------------")
bashio::log.blue "---------------------------------------------------"
}
######################
# MOUNT LOCAL SHARES #