ssh wrt tar -C /etc -c hosts | tar -x
if grep -qFx "$ip $host" hosts; then continue; fi
# openvpn udpates its status file every 60 seconds by default
- if (( $(stat -c%Y hosts) > $(( $(date +%s) + 60 )) )); then
+ if (( $(stat -c%Y hosts) > EPOCHSECONDS + 60 )); then
sleep 60
if $is_connected; then continue; fi
fi