Compare commits
No commits in common. "4517c5bdcbdbe295373f1a1d0b34d029ec32a859" and "78942ff30bc8681b8c7b30bb4100d39fd635aecd" have entirely different histories.
4517c5bdcb
...
78942ff30b
2 changed files with 3 additions and 19 deletions
|
@ -203,15 +203,7 @@ cleanup_tmp_files
|
|||
format_output remove_script "Cleaning up"
|
||||
|
||||
# Print final message
|
||||
final_message() {
|
||||
local script_name=$1
|
||||
local success=$2
|
||||
if [[ $success -eq 0 ]]; then
|
||||
log "${CHECK_MARK} $script_name completed successfully."
|
||||
else
|
||||
log "${CROSS_MARK} $script_name encountered errors."
|
||||
fi
|
||||
}
|
||||
final_message "$this_script_name" $success
|
||||
|
||||
# Exit with appropriate status
|
||||
exit $success
|
12
master.sh
12
master.sh
|
@ -6,7 +6,7 @@
|
|||
# Variables for URLs and script info
|
||||
this_script_url="https://git.hhf.technology/hhf/script-management-cloudpanel/raw/branch/main/master.sh"
|
||||
this_script_name="Script Management CloudPanel"
|
||||
formatter_url="https://git.hhf.technology/hhf/TaskFormatter/raw/branch/main/bash_task_formatter/task_formatter.sh"
|
||||
formatter_url="https://git.hhf.technology/hhf/TaskFormatter/raw/branch/main/task_formatter.sh"
|
||||
BRANCH="main"
|
||||
forgejo_instance="git.hhf.technology"
|
||||
forgejo_owner="hhf"
|
||||
|
@ -214,14 +214,6 @@ if [[ "$verbose" == "true" ]]; then
|
|||
log "Master log file saved at: $master_log_file"
|
||||
fi
|
||||
|
||||
final_message() {
|
||||
local script_name=$1
|
||||
local success=$2
|
||||
if [[ $success -eq 0 ]]; then
|
||||
log "${CHECK_MARK} $script_name completed successfully."
|
||||
else
|
||||
log "${CROSS_MARK} $script_name encountered errors."
|
||||
fi
|
||||
}
|
||||
final_message "$this_script_name" $success
|
||||
|
||||
exit $success
|
Loading…
Reference in a new issue