#!/usr/bin/env bash OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. OPENIM_SCRIPTS=$(dirname "${BASH_SOURCE[0]}")/ source "$OPENIM_SCRIPTS/lib/path.sh" source "$OPENIM_SCRIPTS/define/binaries.sh" # Assuming 'openim::util::host_platform' is defined in one of the sourced scripts or elsewhere. # If not, you'll need to define it to return the appropriate platform directory name. # 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]} local bin_full_path=$(get_bin_full_path "$project_dir" "$binary") echo "$project_dir" "$binary" 444444444444444444 # Loop to start binary the specified number of times for ((i=0; i