Fix: Don't crash on unset variable
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0f948bf04b
commit
2a909b3bcf
1 changed files with 1 additions and 1 deletions
|
@ -19,4 +19,4 @@ network=$(iwgetid -r)
|
||||||
printf "\uf9a1 <span color=\"#8FAAFC\">%s</span> <span color=\"#50fa7b\">(%s)</span>" ${network} ${ip}
|
printf "\uf9a1 <span color=\"#8FAAFC\">%s</span> <span color=\"#50fa7b\">(%s)</span>" ${network} ${ip}
|
||||||
|
|
||||||
# On click copy 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
|
||||||
|
|
Loading…
Reference in a new issue