mirror of
https://github.com/byReqz/conn.git
synced 2024-12-27 22:01:47 +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
|
||||
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----------------------"
|
||||
|
Loading…
Reference in New Issue
Block a user