fix xmobar-sync-status
c2854d41d5515b2d6f1e85f7af5f2dd51f3e856d
1 parent
bc10fa20
bin/xmobar-sync-status
+1 -1
| 7 | 7 | ||
| 8 | 8 | case "$status" in |
|
| 9 | 9 | "active") |
|
| 10 | 10 | ping -c1 -w5 $REMOTE 1>/dev/null 2>/dev/null |
|
| 11 | 11 | ||
| 12 | - | if [[ $? -eq 0 ]]; then |
|
| 12 | + | if [ $? -eq 0 ]; then |
|
| 13 | 13 | echo "<fc=aquamarine>✔</fc>" |
|
| 14 | 14 | else |
|
| 15 | 15 | echo "<fc=maroon>!</fc>" |
|
| 16 | 16 | fi ;; |
|
| 17 | 17 |