1#!/bin/bash 2# 3# config: 1 1 4# @brief: Move user initialized core file to the dreport packaging. 5# 6 7# shellcheck source=tools/dreport.d/include.d/functions 8. "$DREPORT_INCLUDE"/functions 9 10desc="Core file" 11if [ -z "$optional_path" ]; then 12 log_error "$desc does not exist" 13 exit 14fi 15 16# Remove the file from optional_path after successful copy 17if add_copy_file "$optional_path" "$desc"; then 18 rm "$optional_path" 19fi 20