diff --git a/plugins/common/functions b/plugins/common/functions index 41c0c3d01..61a7bbb89 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -402,6 +402,11 @@ copy_from_image() { # workaround for CHECKS file when owner is root. seems to only happen when running inside docker cat "$TMP_FILE_COMMAND_OUTPUT" | dos2unix -l >"$DST_FILE" + # add trailing newline for certain places where file parsing depends on it + if [[ "$(tail -c1 "$DST_FILE")" != "" ]]; then + echo "" >>"$DST_FILE" + fi + "$DOCKER_BIN" rm -f "$CID" &>/dev/null else return 1