mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-07 22:42:15 +08:00
Optimizing scripts
This commit is contained in:
parent
905cda43be
commit
3b412a5708
@ -43,7 +43,6 @@ function execute_start_scripts() {
|
|||||||
# Check if the script file exists and is executable.
|
# Check if the script file exists and is executable.
|
||||||
if [[ -x "$script_path" ]]; then
|
if [[ -x "$script_path" ]]; then
|
||||||
openim::log::colorless "Starting script: ${script_path##*/}" # Log the script name.
|
openim::log::colorless "Starting script: ${script_path##*/}" # Log the script name.
|
||||||
|
|
||||||
# Execute the script with the constructed argument.
|
# Execute the script with the constructed argument.
|
||||||
result=$("$script_path" "$arg")
|
result=$("$script_path" "$arg")
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user