1
0
mirror of https://github.com/byReqz/conn.git synced 2025-06-15 12:47:46 +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

View File

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