File 6701-gh-Fix-find-command-when-purging-prs.patch of Package erlang
From fccf6683c95163c3980899297622461474a07bb0 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 25 Sep 2023 09:08:31 +0200
Subject: [PATCH] gh: Fix `find` command when purging prs
---
.github/scripts/sync-github-prs.es | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/scripts/sync-github-prs.es b/.github/scripts/sync-github-prs.es
index b501376d8a..0357adfd65 100755
--- a/.github/scripts/sync-github-prs.es
+++ b/.github/scripts/sync-github-prs.es
@@ -171,7 +171,8 @@ purge_suite(SuiteFilePath) ->
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),
+ Files = string:split(cmd("find " ++ Target ++ " -type f -a "
+ "-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