From 04eb283bf224b31d3fca149d64666d9aced03a55 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 12 Oct 2016 12:05:20 -0400 Subject: [PATCH] the first test is the shallowest --- check_syntax.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 check_syntax.sh diff --git a/check_syntax.sh b/check_syntax.sh new file mode 100755 index 00000000..2f12eaf2 --- /dev/null +++ b/check_syntax.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +for FILE in $(find "$DIR" -name '*.php'); do + php7.0 -l $FILE +done