Fix: Prevent exit 1 on no button being available
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2a909b3bcf
commit
6e2827c3b6
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}
|
||||
|
||||
# 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 || true
|
||||
|
|
Loading…
Add table
Reference in a new issue