diff --git a/check_nfs_shares.sh b/check_nfs_shares.sh index d567144..60caefa 100755 --- a/check_nfs_shares.sh +++ b/check_nfs_shares.sh @@ -12,7 +12,7 @@ print_help() { exit 1 } -if [ "$#" -ne 4 ] || [ "$1" == "-help" ] || [ "$1" == "--help" ]; then +if [ "$#" -ne 4 ] || [ "$1" == "--help" ]; then print_help fi @@ -45,7 +45,7 @@ for share in "${share_array[@]}"; do done if $all_ok; then - echo "OK - All specified shares are exported on $host | share_count=$share_count" + echo "OK - All $share_count shares are exported on $host | share_count=$share_count" fi exit 0