mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-06 10:05:58 +08:00
feat: add scripts lib
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright 2020 Lingfei Kong <colin404@foxmail.com>. All rights reserved.
|
||||
# Use of this source code is governed by a MIT style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
set -o errexit
|
||||
set +o nounset
|
||||
set -o pipefail
|
||||
|
||||
# Unset CDPATH so that path interpolation can work correctly
|
||||
# https://github.com/iamrnetes/iamrnetes/issues/52255
|
||||
unset CDPATH
|
||||
|
||||
# Default use go modules
|
||||
export GO111MODULE=on
|
||||
|
||||
# The root of the build/dist directory
|
||||
IAM_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
|
||||
|
||||
source "${IAM_ROOT}/scripts/lib/util.sh"
|
||||
source "${IAM_ROOT}/scripts/lib/logging.sh"
|
||||
source "${IAM_ROOT}/scripts/lib/color.sh"
|
||||
|
||||
iam::log::install_errexit
|
||||
|
||||
source "${IAM_ROOT}/scripts/lib/version.sh"
|
||||
source "${IAM_ROOT}/scripts/lib/golang.sh"
|
||||
Reference in New Issue
Block a user