Fix xmobar-sync-status

2b23784f9b2fc16ac78cb13d7216d12b4a1feac2
Alexis Sellier committed ago 1 parent 885815f6
bin/xmobar-sync-status +1 -1
5 5
while :; do
6 6
  status="$(systemctl --user is-active share-sync)"
7 7
8 8
  case "$status" in
9 9
    "active")
10 -
      ping -c1 -w5 $REMOTE 2>&1 >/dev/null
10 +
      ping -c1 -w5 $REMOTE 2>/dev/null
11 11
12 12
      if [[ $? -eq 0 ]]; then
13 13
        echo "<fc=aquamarine>✔</fc>"
14 14
      else
15 15
        echo "<fc=maroon>!</fc>"