mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 18:38:00 +00:00
[polypar] Swap icons between openvpn and fortivpn
This commit is contained in:
parent
a7aefc46ff
commit
9cb7897f94
@ -3,9 +3,9 @@
|
|||||||
OUTPUT=""
|
OUTPUT=""
|
||||||
|
|
||||||
openvpn=$(pgrep -c openvpn$)
|
openvpn=$(pgrep -c openvpn$)
|
||||||
[ "$openvpn" -gt 0 ] && OUTPUT=$(eval printf "%.0s" "{1..$openvpn}")
|
[ "$openvpn" -gt 0 ] && OUTPUT=$(eval printf "%.0s" "{1..$openvpn}")
|
||||||
|
|
||||||
openfortivpn=$(pgrep -c openfortivpn$)
|
openfortivpn=$(pgrep -c openfortivpn$)
|
||||||
[ "$openfortivpn" -gt 0 ] && OUTPUT=${OUTPUT}$(eval printf '%.0s' "{1..$openfortivpn}")
|
[ "$openfortivpn" -gt 0 ] && OUTPUT=${OUTPUT}$(eval printf '%.0s' "{1..$openfortivpn}")
|
||||||
|
|
||||||
echo "$OUTPUT" | sed -e 's/\(.\)/\1 /g'
|
echo "$OUTPUT" | sed -e 's/\(.\)/\1 /g'
|
||||||
|
Loading…
Reference in New Issue
Block a user