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