diff --git a/scripts/build-all-service.sh b/scripts/build-all-service.sh index f5bd49126..6335b0e08 100755 --- a/scripts/build-all-service.sh +++ b/scripts/build-all-service.sh @@ -23,7 +23,7 @@ # Example: `scripts/build-go.sh WHAT=cmd/kubelet`. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/check-all.sh b/scripts/check-all.sh index f7e29376b..17fb5fb7c 100755 --- a/scripts/check-all.sh +++ b/scripts/check-all.sh @@ -20,7 +20,7 @@ # READ: https://github.com/openimsdk/open-im-server/tree/main/scripts/install/environment.sh -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/cherry-pick.sh b/scripts/cherry-pick.sh index a072f1ecf..f8d7912f8 100755 --- a/scripts/cherry-pick.sh +++ b/scripts/cherry-pick.sh @@ -22,7 +22,7 @@ # automated-cherry-pick-of--- -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/docker-start-all.sh b/scripts/docker-start-all.sh index e3babbeb4..c47069e3b 100755 --- a/scripts/docker-start-all.sh +++ b/scripts/docker-start-all.sh @@ -15,7 +15,7 @@ # limitations under the License. -set -o nounset + #fixme This scripts is the total startup scripts diff --git a/scripts/gen-swagger-docs.sh b/scripts/gen-swagger-docs.sh index 311ae8e15..e768f9106 100755 --- a/scripts/gen-swagger-docs.sh +++ b/scripts/gen-swagger-docs.sh @@ -16,7 +16,7 @@ # Script to generate docs from the latest swagger spec. -set -o nounset + # The root of the build/dist directory diff --git a/scripts/init-config.sh b/scripts/init-config.sh index 34b403923..c7cf16320 100755 --- a/scripts/init-config.sh +++ b/scripts/init-config.sh @@ -16,7 +16,7 @@ # This script automatically initializes various configuration files and can generate example files. -set -o nounset + # Root directory of the OpenIM project diff --git a/scripts/init-env.sh b/scripts/init-env.sh index 495a8fcf4..1e802c3be 100755 --- a/scripts/init-env.sh +++ b/scripts/init-env.sh @@ -16,7 +16,7 @@ #FIXME This script is the startup script for multiple servers. #FIXME The full names of the shell scripts that need to be started are placed in the `need_to_start_server_shell` array. -set -o nounset + OPENIM_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd -P) diff --git a/scripts/install-im-server.sh b/scripts/install-im-server.sh index 426779be0..d11a49dc8 100755 --- a/scripts/install-im-server.sh +++ b/scripts/install-im-server.sh @@ -28,7 +28,7 @@ # SERVER_IMAGE_VERSION=latest IMAGE_REGISTRY=myregistry ./this_script.sh -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/list-feature-tests.sh b/scripts/list-feature-tests.sh index 7ed19e25d..d6eaa4873 100755 --- a/scripts/list-feature-tests.sh +++ b/scripts/list-feature-tests.sh @@ -19,7 +19,7 @@ # Usage: `scripts/list-feature-tests.sh`. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/release.sh b/scripts/release.sh index ed981a0ed..eb8b04359 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -48,7 +48,7 @@ # Build a OpenIM release. This script supports various flags for flexible execution control. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. source "${OPENIM_ROOT}/scripts/common.sh" diff --git a/scripts/run-in-gopath.sh b/scripts/run-in-gopath.sh index cbad11d39..6af986975 100755 --- a/scripts/run-in-gopath.sh +++ b/scripts/run-in-gopath.sh @@ -21,7 +21,7 @@ # Usage: `scripts/run-in-gopath.sh `. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/start-all.sh b/scripts/start-all.sh index 39c5d1bf2..0be1d4022 100755 --- a/scripts/start-all.sh +++ b/scripts/start-all.sh @@ -16,7 +16,7 @@ #FIXME This script is the startup script for multiple servers. #FIXME The full names of the shell scripts that need to be started are placed in the `need_to_start_server_shell` array. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/stop-all.sh b/scripts/stop-all.sh index 9b2baa23d..00bcbe9cd 100755 --- a/scripts/stop-all.sh +++ b/scripts/stop-all.sh @@ -19,7 +19,7 @@ # Encapsulated as: `make stop`. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/update-generated-docs.sh b/scripts/update-generated-docs.sh index 84b5c0f8d..d48a4067b 100755 --- a/scripts/update-generated-docs.sh +++ b/scripts/update-generated-docs.sh @@ -19,7 +19,7 @@ # by default. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/update-yamlfmt.sh b/scripts/update-yamlfmt.sh index e9cfd63e2..24ec60de9 100755 --- a/scripts/update-yamlfmt.sh +++ b/scripts/update-yamlfmt.sh @@ -15,7 +15,7 @@ -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/verify-pkg-names.sh b/scripts/verify-pkg-names.sh index 1357c6cb7..7fce3d7ad 100755 --- a/scripts/verify-pkg-names.sh +++ b/scripts/verify-pkg-names.sh @@ -18,7 +18,7 @@ # Usage: `scripts/verify-pkg-names.sh`. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/verify-shellcheck.sh b/scripts/verify-shellcheck.sh index 0b8687edb..c7e713d09 100755 --- a/scripts/verify-shellcheck.sh +++ b/scripts/verify-shellcheck.sh @@ -18,7 +18,7 @@ # Usage: `scripts/verify-shellcheck.sh`. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/verify-spelling.sh b/scripts/verify-spelling.sh index d2830f591..fa0852866 100755 --- a/scripts/verify-spelling.sh +++ b/scripts/verify-spelling.sh @@ -18,7 +18,7 @@ # Usage: `scripts/verify-spelling.sh`. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/verify-typecheck.sh b/scripts/verify-typecheck.sh index 529c35397..c9b2aaf30 100755 --- a/scripts/verify-typecheck.sh +++ b/scripts/verify-typecheck.sh @@ -17,7 +17,7 @@ # Usage: `scripts/verify-typecheck.sh`. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/verify-yamlfmt.sh b/scripts/verify-yamlfmt.sh index 636a9c8e4..3acbf457c 100755 --- a/scripts/verify-yamlfmt.sh +++ b/scripts/verify-yamlfmt.sh @@ -20,7 +20,7 @@ # Usage: `scripts/verify-yamlfmt.sh`. -set -o nounset + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..