blob: 14cd14b5f8920f58a6b5c4dc48814b05f7bc14f1 [file] [log] [blame]
Jayanth Othayoth6f1c4d82017-10-15 06:16:21 -05001#!/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