Skip to content

Commit

Permalink
Update 00-smb_mounts.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Sep 27, 2023
1 parent 4403104 commit f2277cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .templates/00-smb_mounts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ if bashio::config.has_value 'networkdisks'; then

# Does server exists
server="$(echo "$disk" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")"
if nc -w 2 -z 8.8.8.8 22 2>/dev/null; then
if command -v "nc" &>/dev/null; then
nc -w 2 -z "$server" 22 2>/dev/null || \
bashio::log.warning "Your server $server from $disk isn't reachable, is it correct?"
bashio::log.warning "Your server $server from $disk doesn't seem reachable, is it correct?"
fi

# Prepare mount point
Expand Down

0 comments on commit f2277cb

Please sign in to comment.