From e383ec30e3d30c06c0729acd4117e91ce56852f2 Mon Sep 17 00:00:00 2001 From: Liang Ying-Ruei Date: Mon, 9 Sep 2024 21:43:57 +0800 Subject: [PATCH] fix: Splits $USER_PORTS correctly by commas (#813) --- src/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network.sh b/src/network.sh index f6e5201..a7bf4a3 100644 --- a/src/network.sh +++ b/src/network.sh @@ -112,7 +112,7 @@ getUserPorts() { [ -z "$list" ] && list="$ssh,$dsm" || list+=",$ssh,$dsm" - list="${list/,/ }" + list="${list//,/ }" list="${list## }" list="${list%% }"