Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-core / src / Utils / ShellProcess.php
index acb91ed5530e1dabd3305fce299b70affc17abcc..43f57d78350bd445c959131001d22b1524f34678 100644 (file)
@@ -64,12 +64,14 @@ class ShellProcess
             $workingDirectory = $this->appRoot;
         }
 
-        $this->io->newLine();
-        $this->io->comment(
-            $this->translator->trans('commands.exec.messages.working-directory') .': ',
-            false
-        );
-        $this->io->writeln($workingDirectory);
+        if (realpath($workingDirectory)) {
+            $this->io->comment(
+                $this->translator->trans('commands.exec.messages.working-directory') .': ',
+                false
+            );
+            $this->io->writeln(realpath($workingDirectory));
+        }
+
         $this->io->comment(
             $this->translator->trans('commands.exec.messages.executing-command') .': ',
             false