blob: 7506202f461e142d0a255405136a2926572e8c99 [file] [log] [blame]
#!/bin/bash
#
# config: 5 1
# @brief: Move the ramoops data file to the dreport packaging.
#
# shellcheck source=tools/dreport.d/include.d/functions
. "$DREPORT_INCLUDE/functions"
desc="Ramoops file"
if [ -n "${optional_path}" ]; then
for path in "${optional_path}"/*
do
if [ -f "$path" ]; then
# Remove the file from path after successful copy
if add_copy_file "$path" "$desc"; then
rm "$path"
fi
fi
done
fi