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:
parent
3fe04fab72
commit
2256d9fb4a
7
conn.sh
7
conn.sh
@ -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----------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user