Skip to content

Commit

Permalink
Update 00-local_mounts.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Sep 26, 2023
1 parent a8c922d commit f5bc0b3
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .templates/00-local_mounts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
Expand Down

0 comments on commit f5bc0b3

Please sign in to comment.