first
This commit is contained in:
9
lib/network.sh
Normal file
9
lib/network.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
network_warn_if_offline() {
|
||||
if command -v ping >/dev/null 2>&1 && ping -c 1 -W 1 1.1.1.1 >/dev/null 2>&1; then
|
||||
ui_success "Connectivite reseau disponible"
|
||||
else
|
||||
ui_warn "Reseau non verifie ou indisponible"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user