Fixed StyleCI warning

This commit is contained in:
Vic D'Elfant 2016-03-14 12:33:59 +01:00
parent ac401ea2b2
commit 0af52aa851

View File

@ -105,8 +105,7 @@ task('deploy:prepare', function () {
// Check for existing /current directory (not symlink)
$result = run('if [ ! -L {{deploy_path}}/current ] && [ -d {{deploy_path}}/current ]; then echo 1; fi')->toString();
if ($result)
{
if ($result) {
throw new RuntimeException('There already is a directory (not symlink) named "current" in the deploy_path. Remove this directory so it can be replaced with a symlink for atomic deployments.');
}