Add default case for when not on a train

This commit is contained in:
tjark.saul 2020-01-03 16:07:57 +01:00
parent a6a287805e
commit 713f83ea3b
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +0,0 @@
#!/bin/bash
/usr/local/bin/fish ~/dev/ambient/ambient-widgets | tr '\n' ' '

9
bitbar/ambient.60s.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
WIDGET=$(/usr/local/bin/fish ~/dev/ambient/ambient-widgets | tr '\n' ' ')
if [ -z "$WIDGET" ]; then
echo "🚄"
else
echo $WIDGET
fi