Remove the core file after creating the archive.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
collect_recursive "$str"
done
- rm -f "$core_file"
+ echo "$core_file" >> $file_list
ret=1
done < <(find "/tmp" -maxdepth 1 -name "core\.[0-9]*" -type f 2>/dev/null)
tar cfzh "${WORKSPACE}/build/core.tar.gz" -T <(sort "$file_list" | uniq)
fi
+# Remove core file
+while read -r core_file; do
+ rm -rf "$core_file"
+done < <(find "/tmp" -maxdepth 1 -name "core\.[0-9]*" -type f 2>/dev/null)
+
rm -f "$file_list"
exit $ret