update
This commit is contained in:
parent
c9ea1ddc39
commit
326022b15b
2 changed files with 18 additions and 2 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
|
10
master.sh
10
master.sh
|
@ -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