#!/bin/bash network_status='false' if nmcli -g TYPE connection show --active | grep -q "${1}";then network_status='true' fi printf '%s' "${network_status}"