1
0
mirror of https://github.com/byReqz/conn.git synced 2024-11-01 01:03:14 +00:00

reversing the last commit, function not working properly

This commit is contained in:
Nils 2021-01-15 15:49:59 +00:00 committed by GitHub
parent 3fe04fab72
commit 2256d9fb4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,13 +2,6 @@
if [[ -z "$1" ]]; then if [[ -z "$1" ]]; then
echo "Usage: conn [ip] (y/n)" echo "Usage: conn [ip] (y/n)"
exit exit
elif [[ "$2" != p ]]; then
echo "multi-ip mode detected, only checking availability"
echo ""
echo "-------------------Availability----------------------"
fping "$@"
echo "-----------------------------------------------------"
exit
elif [[ -n "$1" ]]; then elif [[ -n "$1" ]]; then
echo "checking connection status for $1" echo "checking connection status for $1"
echo "-------------------Availability----------------------" echo "-------------------Availability----------------------"