show-nfs-clients.sh: some minor changes on script output.

This commit is contained in:
Christoph 2020-03-05 12:16:32 +01:00
parent bcc375d1d0
commit 81090b3e81

View File

@ -247,6 +247,7 @@ else
echo_ok
fi
# Create array of connected clients:
#
echononl "Create array of connected clients.."
@ -275,14 +276,32 @@ fi
if [[ ${#NFS_CLIENT_ARR[@]} -gt 0 ]]; then
if ! $terminal ; then
echo ""
echo "Number of connected clients: ${#NFS_CLIENT_ARR[@]}"
echo ""
fi
for _nfs_client in "${NFS_CLIENT_ARR[@]}" ; do
if $terminal ; then
echo -e " \033[33m$_nfs_client\033[m"
else
echo " $_nfs_client"
fi
done
if $terminal ; then
info "Number of connected clients: \033[1m${#NFS_CLIENT_ARR[@]}\033[m"
fi
else
if $terminal ; then
info "No NFS Client connected."
else
echo ""
echo ""No NFS Client connected.
echo ""
fi
fi