diff --git a/lib/slim.js b/lib/slim.js index e42a884f..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 -name "${removalMatch}" -exec rm -rf {} +`; + return `&& find ${folderPath} -type d -wholename "${removalMatch}" -exec rm -rf {} +`; } module.exports = {