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