From 7d17515e256d307dfb0b16270f081e1c0334529a Mon Sep 17 00:00:00 2001 From: Steven Zeck Date: Tue, 15 May 2018 12:08:09 -0500 Subject: [PATCH] Fix error with php-cs-fixer being run from phar file --- src/beautifiers/executable.coffee | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/beautifiers/executable.coffee b/src/beautifiers/executable.coffee index c02559e..5c85b77 100644 --- a/src/beautifiers/executable.coffee +++ b/src/beautifiers/executable.coffee @@ -389,6 +389,9 @@ class HybridExecutable extends Executable installedWithDocker: false init: () -> super() + .then(() => + return @ + ) .catch((error) => return Promise.reject(error) if not @docker? return @ @@ -400,6 +403,13 @@ class HybridExecutable extends Executable return @initDocker() return @ ) + .catch((error) => + if not @.required + @verbose("Not required") + @ + else + Promise.reject(error) + ) initDocker: () -> @docker.init()