fix: Splits $USER_PORTS correctly by commas (#813)

This commit is contained in:
Liang Ying-Ruei 2024-09-09 21:43:57 +08:00 committed by GitHub
parent 1197c4791e
commit e383ec30e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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