summaryrefslogtreecommitdiff
path: root/home/dots/.local/bin/org-sync
blob: 47474e68f7de43637f57c9bdd77ed1f4fa07e960 (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
    /usr/bin/env rclone bisync storage:personal-db ~/personal-db;
    echo "Sync complete";
fi