blob: 14cd14b5f8920f58a6b5c4dc48814b05f7bc14f1 [file] [log] [blame]
#!/bin/bash
#
# config: 1 1
# @brief: Move user initialized core file to the dreport packaging.
#
. $DREPORT_INCLUDE/functions
desc="Core file"
if [ -z $optional_path ]; then
log_error "$desc does not exist"
exit
fi
# Remove the file from optional_path after successful copy
if add_copy_file "$optional_path" "$desc"; then
rm "$optional_path"
fi