From 7a5be03af612705f6a47e3ef6964be63a4b30017 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Sat, 10 Jun 2023 19:58:54 +0800 Subject: [PATCH] style: details optimization Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- script/githooks/commit-msg | 1 - script/githooks/pre-commit | 3 +-- script/githooks/pre-push | 16 ++++++++++++++++ script/path_info.cfg | 3 --- script/push_start.sh | 2 -- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/script/githooks/commit-msg b/script/githooks/commit-msg index a9c254445..eede298a0 100644 --- a/script/githooks/commit-msg +++ b/script/githooks/commit-msg @@ -1,5 +1,4 @@ #!/usr/bin/env bash - # Copyright © 2023 OpenIMSDK. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/script/githooks/pre-commit b/script/githooks/pre-commit index 4ca4d2ca5..2648aa34c 100644 --- a/script/githooks/pre-commit +++ b/script/githooks/pre-commit @@ -1,5 +1,4 @@ #!/usr/bin/env bash - # Copyright © 2023 OpenIMSDK. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -22,7 +21,7 @@ # GIT_FILE_SIZE_LIMIT=50000000 git commit -m "test: this commit is allowed file sizes up to 50MB" # # ============================================================================== - +# YELLOW="\e[93m" GREEN="\e[32m" diff --git a/script/githooks/pre-push b/script/githooks/pre-push index 3402ac656..ef1b5b1fe 100644 --- a/script/githooks/pre-push +++ b/script/githooks/pre-push @@ -1,4 +1,20 @@ #!/usr/bin/env bash +# Copyright © 2023 OpenIMSDK. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============================================================================== +# YELLOW="\e[93m" GREEN="\e[32m" diff --git a/script/path_info.cfg b/script/path_info.cfg index 4c77b4ec5..2d2d223d9 100644 --- a/script/path_info.cfg +++ b/script/path_info.cfg @@ -83,6 +83,3 @@ service_names=( ) goos=linux goarch=amd64 - - - diff --git a/script/push_start.sh b/script/push_start.sh index be34903ec..a623ebb39 100755 --- a/script/push_start.sh +++ b/script/push_start.sh @@ -5,8 +5,6 @@ source ./style_info.cfg source ./path_info.cfg source ./function.sh - - list1=$(cat $config_path | grep openImPushPort | awk -F '[:]' '{print $NF}') list2=$(cat $config_path | grep pushPrometheusPort | awk -F '[:]' '{print $NF}') list_to_string $list1