xbar-plugins
xbar-plugins copied to clipboard
Xbar result and terminal output differs
I have a small script
#!/bin/bash
if echo "$(wget --spider -t 1 -T 1 https://www.google.com 2>&1)" | grep -q "OK"; then
echo "✦| dropdown=false"
echo "---"
echo "You're online"
else
echo "✧|color=#f23400 dropdown=false"
echo "---"
echo "You're offline"
fi
If a run it from terminal I get right output. But xbar output is always you're offline.