core: 不重要的优化

This commit is contained in:
bin456789
2023-11-09 22:30:21 +08:00
parent 60d3d8a0a1
commit 54acd253d9
2 changed files with 6 additions and 4 deletions

View File

@ -802,7 +802,7 @@ collect_netconf() {
config=$1
key=$2
var=$3
IFS=',' read -r -a "${var?}" <<<"$(grep "$key=" <<<"$config" | cut -d= -f2 | sed 's/[{}"]//g')"
IFS=',' read -r -a "${var?}" <<<"$(grep "$key=" <<<"$config" | cut -d= -f2 | sed 's/[{}\"]//g')"
}
# 部分机器精简了 powershell