fix: Split ports correctly

This commit is contained in:
Kroese 2024-09-09 15:47:34 +02:00 committed by GitHub
parent 9ed7b80038
commit 7b5974a153
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,7 @@ getUserPorts() {
[ -z "$list" ] && list="$ssh,$rdp" || list+=",$ssh,$rdp"
list="${list/,/ }"
list="${list//,/ }"
list="${list## }"
list="${list%% }"