Jayanth Othayoth | 6f1c4d8 | 2017-10-15 06:16:21 -0500 | [diff] [blame^] | 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 | |||||
9 | desc="Core file" | ||||
10 | if [ -z $optional_path ]; then | ||||
11 | log_error "$desc does not exist" | ||||
12 | exit | ||||
13 | fi | ||||
14 | |||||
15 | # Remove the file from optional_path after successful copy | ||||
16 | if add_copy_file "$optional_path" "$desc"; then | ||||
17 | rm "$optional_path" | ||||
18 | fi |