Optimizing scripts

This commit is contained in:
skiffer-git 2024-03-21 18:02:26 +08:00
parent 905cda43be
commit 3b412a5708

View File

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