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

View File

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