#!/usr/bin/env bash internet=$(nmcli g | sed -n 2p | awk '{print $1}') if [[ $internet == "connected" ]] then echo "" else echo "" fi