Fix: Do not fail when button is undefined
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0848a25a3d
commit
d3f1069965
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
# In case we got a click, open the notifications page
|
||||
[ -n "${BLOCK_BUTTON}" ] && xdg-open "https://github.com/notifications" >/dev/null 2>&1
|
||||
[ -n "${BLOCK_BUTTON:-}" ] && xdg-open "https://github.com/notifications" >/dev/null 2>&1
|
||||
|
||||
[ -f ${HOME}/.config/i3blocks/.env ] && source ${HOME}/.config/i3blocks/.env
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue