From cf5c90a416fd8a96b72628451a08e33f1abdd52e Mon Sep 17 00:00:00 2001 From: benjipott Date: Wed, 18 Jul 2018 17:43:51 +0200 Subject: [PATCH 1/2] Update slim.js Update slim option to match regex folder like tensorflow\/core --- lib/slim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/slim.js b/lib/slim.js index e42a884f..5de49b94 100644 --- a/lib/slim.js +++ b/lib/slim.js @@ -50,7 +50,7 @@ function getDefaultSLimOptions(folderPath) { * @return {String} */ function getRemovalCommand(folderPath, removalMatch) { - return `&& find ${folderPath} -type d -name "${removalMatch}" -exec rm -rf {} +`; + return `&& find ${folderPath} -type d -regex ".${removalMatch}" -exec rm -rf {} +`; } module.exports = { From 6c17a16099fa8255919c587ca5cef292d0a87af7 Mon Sep 17 00:00:00 2001 From: benjipott Date: Wed, 18 Jul 2018 18:16:51 +0200 Subject: [PATCH 2/2] Update slim.js --- lib/slim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/slim.js b/lib/slim.js index 5de49b94..2eaf890f 100644 --- a/lib/slim.js +++ b/lib/slim.js @@ -50,7 +50,7 @@ function getDefaultSLimOptions(folderPath) { * @return {String} */ function getRemovalCommand(folderPath, removalMatch) { - return `&& find ${folderPath} -type d -regex ".${removalMatch}" -exec rm -rf {} +`; + return `&& find ${folderPath} -type d -wholename "${removalMatch}" -exec rm -rf {} +`; } module.exports = {