[polypar] Swap icons between openvpn and fortivpn

This commit is contained in:
Daniel Carrillo 2021-01-30 15:15:20 +01:00
parent a7aefc46ff
commit 9cb7897f94
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
1 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@
OUTPUT=""
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" -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'