We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed2be4 commit f895b71Copy full SHA for f895b71
etc/config/command.php
@@ -41,6 +41,11 @@
41
$output = "CLI command timed out, no output available.";
42
$idleTimeout = true;
43
}
44
+
45
+ if (checkForFilePath($output)) {
46
+ $output = "CLI output suppressed, filepath detected in output.";
47
+ }
48
49
$exitCode = $process->getExitCode();
50
51
if ($exitCode == 0 || $idleTimeout) {
@@ -104,3 +109,13 @@ function trimAfterWhitespace($string)
104
109
{
105
110
return strtok($string, ' ');
106
111
112
113
+/**
114
+ * Detects file path in string.
115
+ * @param string $string
116
+ * @return boolean
117
+ */
118
+function checkForFilePath($string)
119
+{
120
+ return preg_match('/\/[\S]+\//', $string);
121
+}
0 commit comments