From bd5807fd9ebcaa83ebf53659493dfcd3d7088cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=A9niz?= Date: Tue, 5 Nov 2024 18:23:21 +0000 Subject: [PATCH] Acknowledge thirdpartylibs.xml in plugin names with 'work' When removing files irrelevant to the tests, any files or folders containing the substring "word" remain untouched. This poses a problem if the plugin uses that substring. --- remote_branch_checker/remote_branch_checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote_branch_checker/remote_branch_checker.sh b/remote_branch_checker/remote_branch_checker.sh index c155159..1c36898 100755 --- a/remote_branch_checker/remote_branch_checker.sh +++ b/remote_branch_checker/remote_branch_checker.sh @@ -456,7 +456,7 @@ echo "Info: Deleting excluded and unrelated files..." # Remove all the excluded (but .git and work) set -e for todelete in ${excluded}; do - if [[ ${todelete} =~ ".git" || ${todelete} =~ "work" || ${todelete} =~ "node_modules" ]]; then + if [[ ${todelete} =~ ".git" || ${todelete} =~ ^work/ || ${todelete} =~ "node_modules" ]]; then continue fi rm -fr "${WORKSPACE}/${todelete}"