Script Refactoring

pull/2148/head
skiffer-git 2 years ago
parent 9ab86f5767
commit cf8ab02842

@ -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
}

@ -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]}

Loading…
Cancel
Save