Compare commits
3 commits
78942ff30b
...
4517c5bdcb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4517c5bdcb | ||
![]() |
3325157d84 | ||
![]() |
326022b15b |
2 changed files with 19 additions and 3 deletions
|
@ -203,7 +203,15 @@ cleanup_tmp_files
|
|||
format_output remove_script "Cleaning up"
|
||||
|
||||
# Print final message
|
||||
final_message "$this_script_name" $success
|
||||
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
|
||||
}
|
||||
|
||||
# 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/task_formatter.sh"
|
||||
formatter_url="https://git.hhf.technology/hhf/TaskFormatter/raw/branch/main/bash_task_formatter/task_formatter.sh"
|
||||
BRANCH="main"
|
||||
forgejo_instance="git.hhf.technology"
|
||||
forgejo_owner="hhf"
|
||||
|
@ -214,6 +214,14 @@ if [[ "$verbose" == "true" ]]; then
|
|||
log "Master log file saved at: $master_log_file"
|
||||
fi
|
||||
|
||||
final_message "$this_script_name" $success
|
||||
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
|
||||
}
|
||||
|
||||
exit $success
|
Loading…
Reference in a new issue