fix: Splits $USER_PORTS correctly by commas

This commit is contained in:
yingrueil 2024-09-09 19:07:03 +08:00
parent 1197c4791e
commit b92ed7e1aa

View File

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