From f5bc0b3bff16cb8855531b6afdbadf7ca4efcca2 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 26 Sep 2023 09:52:42 +0200 Subject: [PATCH] Update 00-local_mounts.sh --- .templates/00-local_mounts.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.templates/00-local_mounts.sh b/.templates/00-local_mounts.sh index 96017bd9f..5d1d6255a 100755 --- a/.templates/00-local_mounts.sh +++ b/.templates/00-local_mounts.sh @@ -6,20 +6,20 @@ #################### ## List available Disk with Labels and Id - bashio::log.blue "---------------------------------------------------" - bashio::log.blue "By https://github.com/dianlight/hassio-addons " - #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) - if [ ${#autodisks[@]} -eq 0 ]; then - bashio::log.info "No Disk with labels." - else - bashio::log.info "Available Disk Labels:" - # shellcheck disable=SC2046 - for disk in "${autodisks[@]}"; do - bashio::log.info "\t${disk}[$(lsblk $(blkid -L "$disk") -no fstype)]" - done - fi - bashio::log.blue "---------------------------------------------------" +bashio::log.blue "---------------------------------------------------" +bashio::log.blue "By https://github.com/dianlight/hassio-addons " +#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) +if [ ${#autodisks[@]} -eq 0 ]; then + bashio::log.info "No Disk with labels." +else + bashio::log.info "Available Disk Labels:" + # shellcheck disable=SC2046 + for disk in "${autodisks[@]}"; do + bashio::log.info "\t${disk}[$(lsblk $(blkid -L "$disk") -no fstype)]" + done +fi +bashio::log.blue "---------------------------------------------------" ###################### # MOUNT LOCAL SHARES #