File 6702-Fix-purge-prs-find-expression.patch of Package erlang
From 545846d0b521d91f3457d95c496a3c6fb7ab8818 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 20 Nov 2023 08:13:53 +0100
Subject: [PATCH] Fix purge prs find expression
---
.github/scripts/sync-github-prs.es | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/scripts/sync-github-prs.es b/.github/scripts/sync-github-prs.es
index a09beb901f..8b79f93d65 100755
--- a/.github/scripts/sync-github-prs.es
+++ b/.github/scripts/sync-github-prs.es
@@ -176,7 +176,7 @@ purge_prs(Target) ->
%% Start by deleting all data from common_test test runs as they are huge.
os:cmd("rm -rf "++Target++"*/ct_logs/ct_run*/*common_test_test*/run*/log_private/ct_run*"),
Files = string:split(cmd("find " ++ Target ++ " -type f -a "
- "-name \\! suite.log.html -exec du -a {} \\+"),"\n",all),
+ "\\! -name suite.log.html -exec du -a {} \\+"),"\n",all),
SortedFiles =
lists:sort(fun([A|_]=As,[B|_]=Bs) ->
binary_to_integer(A) >= binary_to_integer(B)
--
2.35.3