#!/usr/bin/env sh IS_CONNECTED=$(nmcli | grep -e ^wlp610s0) if $(echo $IS_CONNECTED | grep -q "disconnected") then echo "System is not connected to Wifi. Will not sync"; else ~/go/bin/rclone bisync storage:personal-db ~/personal-db; fi