diff --git a/src/PatternLab/InstallerUtil.php b/src/PatternLab/InstallerUtil.php index fcc7fa99..ec67ba02 100644 --- a/src/PatternLab/InstallerUtil.php +++ b/src/PatternLab/InstallerUtil.php @@ -483,7 +483,15 @@ protected static function pathExists($packageName,$path) { } if ($prompt) { - + + + $existing_paths_policy = Config::getOption("existingPathsPolicy"); + if ($existing_paths_policy == 'merge') { + return false; + } + else if ($existing_paths_policy == 'replace') { + return true; + } // prompt for input using the supplied query $prompt = "the path ".$humanReadablePath." already exists. merge or replace with the contents of ".$packageName." package?"; $options = "M/r";