fix: fix scripts and optimize

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-08-08 22:44:15 +08:00
parent fd2b384253
commit 0414671efd
18 changed files with 131 additions and 61 deletions
+2 -2
View File
@@ -15,7 +15,7 @@
#input:[10023,2323,3434]
#output:10023 2323 3434
list_to_string(){
openim::util:list-to-string(){
ports_list=$*
sub_s1=`echo $ports_list | sed 's/ //g'`
sub_s2=${sub_s1//,/ }
@@ -23,7 +23,7 @@ list_to_string(){
sub_s4=${sub_s3%]*}
ports_array=$sub_s4
}
remove_space(){
openim::util::remove_space(){
value=$*
result=`echo $value | sed 's/ //g'`
}