xbar-plugins icon indicating copy to clipboard operation
xbar-plugins copied to clipboard

Xbar result and terminal output differs

Open fuyarchuk-kg opened this issue 1 year ago • 0 comments

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.

fuyarchuk-kg avatar May 10 '24 11:05 fuyarchuk-kg