George Liu | ff92ffe | 2021-02-09 15:01:53 +0800 | [diff] [blame] | 1 | #!/bin/bash |
2 | # | ||||
3 | # config: 5 1 | ||||
4 | # @brief: Move the ramoops data file to the dreport packaging. | ||||
5 | # | ||||
6 | |||||
7 | . $DREPORT_INCLUDE/functions | ||||
8 | |||||
9 | desc="Ramoops file" | ||||
10 | |||||
11 | for path in ${optional_path}/* | ||||
12 | do | ||||
13 | if [ -f $path ]; then | ||||
14 | # Remove the file from path after successful copy | ||||
15 | if add_copy_file "$path" "$desc"; then | ||||
16 | rm "$path" | ||||
17 | fi | ||||
18 | fi | ||||
19 | done |