feat: save all bash and docs labels

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-08-11 12:00:53 +08:00
parent e13f7ebfe3
commit fabdd4b313
23 changed files with 972 additions and 409 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ openim::color::print_color()
echo
}
# test funtion
# test functions
openim::color::test() {
echo "Starting the color tests..."
+1 -1
View File
@@ -121,7 +121,7 @@ EOF
local go_version
IFS=" " read -ra go_version <<< "$(go version)"
local minimum_go_version
minimum_go_version=go1.13.4
minimum_go_version=go1.18
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
openim::log::usage_from_stdin <<EOF
Detected go version: ${go_version[*]}.
+2 -2
View File
@@ -27,8 +27,8 @@ fi
# Set the log file path
log_file="${OPENIM_OUTPUT}/logs/openim_$(date '+%Y%m%d').log"
if [ ! -f "$log_file" ]; then
mkdir ${OPENIM_OUTPUT}/logs
if [[ ! -d "${OPENIM_OUTPUT}/logs" ]]; then
mkdir -p "${OPENIM_OUTPUT}/logs"
touch "$log_file"
fi