Reading from a file, processing the file in a pipe, and outputting the piped content to the same file can have undefined results, often leading to an empty file. Use an intermediate temp file for generating the offline image list. Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>