Skip to content

Commit 45e180b

Browse files
benjipottdschep
authored andcommitted
Update slim.js (#220)
Update slim option to match regex folder like "*tensorflo/core"
1 parent 19960e9 commit 45e180b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/slim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function getDefaultSLimOptions(folderPath) {
5050
* @return {String}
5151
*/
5252
function getRemovalCommand(folderPath, removalMatch) {
53-
return `&& find ${folderPath} -type d -name "${removalMatch}" -exec rm -rf {} +`;
53+
return `&& find ${folderPath} -type d -wholename "${removalMatch}" -exec rm -rf {} +`;
5454
}
5555

5656
module.exports = {

0 commit comments

Comments
 (0)