Skip to content

Commit 9d0edde

Browse files
author
Thomas Kerin
committed
silent output from validate_examples when things go well
1 parent 222a861 commit 9d0edde

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

validate_examples.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
for i in examples/*.php; do
3-
php $i
4-
if [ $? != 0 ]; then
5-
echo "Error running example code";
3+
php $i > /dev/null
4+
if [ $? -ne 0 ]; then
5+
echo "Error running example code: $i";
66
exit -1
77
fi;
88
done

0 commit comments

Comments
 (0)