1#!/bin/bash 2# 3# config: 5 1 4# @brief: Move the ramoops data file to the dreport packaging. 5# 6 7# shellcheck source=tools/dreport.d/include.d/functions 8. "$DREPORT_INCLUDE/functions" 9 10desc="Ramoops file" 11 12if [ -n "${optional_path}" ]; then 13 for path in "${optional_path}"/* 14 do 15 if [ -f "$path" ]; then 16 # Remove the file from path after successful copy 17 if add_copy_file "$path" "$desc"; then 18 rm "$path" 19 fi 20 fi 21 done 22fi 23