Fix: Don't crash on unset variable

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-03-05 15:23:27 +01:00
parent 0f948bf04b
commit 2a909b3bcf
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -19,4 +19,4 @@ network=$(iwgetid -r)
printf "\uf9a1 <span color=\"#8FAAFC\">%s</span> <span color=\"#50fa7b\">(%s)</span>" ${network} ${ip}
# On click copy IP
[ -n "${BLOCK_BUTTON}" ] && echo -n "${ip}" | tr -d '\n' | xclip -selection c
[ -n "${BLOCK_BUTTON:-}" ] && echo -n "${ip}" | tr -d '\n' | xclip -selection c