summaryrefslogtreecommitdiff
path: root/home/dots/.local/bin/org-sync
blob: 22ab2f8f673183596be245db9e8b115e1b84d31b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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;
    echo "Sync complete";
fi