protected function shareDependenciesFolder()
    {
        $folder = $this->getBinary()->getDependenciesFolder();
        $sharedDependencies = $this->getOption('shared_dependencies', true);
        if (!$sharedDependencies || !$folder) {
            return;
        }

        if ($sharedDependencies === 'copy') {
            $this->bash->copyFromPreviousRelease($folder);
        } else {
            $this->bash->share($folder);
        }
    }