From cf8ab0284256d4dcca7a5f655b274a3cfde1b04a Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 1 Apr 2024 18:39:47 +0800 Subject: [PATCH] Script Refactoring --- scripts-new/lib/path.sh | 2 +- scripts-new/start.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts-new/lib/path.sh b/scripts-new/lib/path.sh index 3159b24c2..dc97b195f 100644 --- a/scripts-new/lib/path.sh +++ b/scripts-new/lib/path.sh @@ -27,7 +27,7 @@ get_bin_full_path() { local host_platform=$(openim::util::host_platform) local bin_full_path="${project_path}/get_bin_path/${host_platform}/${bin_name}" - echo "${bin_full_path}" + echo "${bin_full_path}" 1111111111111 } diff --git a/scripts-new/start.sh b/scripts-new/start.sh index d6d42d3f6..945d0227e 100644 --- a/scripts-new/start.sh +++ b/scripts-new/start.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash + OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. OPENIM_SCRIPTS=$(dirname "${BASH_SOURCE[0]}")/ source "$OPENIM_SCRIPTS/lib/path.sh" @@ -13,7 +14,7 @@ source "$OPENIM_SCRIPTS/define/binaries.sh" # Main function to start binaries start_binaries() { local project_dir="$OPENIM_ROOT" # You should adjust this path as necessary - + echo $OPENIM_ROOT 12322222222222222222222222222222 # Iterate over binaries defined in binary_path.sh for binary in "${!binaries[@]}"; do local count=${binaries[$binary]}