Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stratum0
stratum0-blog
Commits
93b12aa5
Commit
93b12aa5
authored
Oct 01, 2017
by
rohieb
Browse files
index.php: don't throw your arms in the air when the output is an array
parent
da791c28
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.php
View file @
93b12aa5
...
...
@@ -109,7 +109,7 @@ putenv('LC_ALL=en_US.UTF-8');
exec
(
'bundle exec rake generate 2>&1'
,
$output
,
$ret
);
$OUTPUT
=
implode
(
"
\n
"
,
$output
);
if
(
$ret
!=
0
or
strpos
(
$
output
,
"error"
)
!==
FALSE
)
{
if
(
$ret
!=
0
or
strpos
(
$
OUTPUT
,
"error"
)
!==
FALSE
)
{
echo
"build error (rake returned
$ret
), output:
\n\n
"
;
echo
var_export
(
$output
,
true
);
die
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment