Commit 0c419a4e authored by TheresNoTime's avatar TheresNoTime

Regex lookup on RESULTS, return 2nd match, echo + set error true

parent 68d780a5
Pipeline #21 failed with stage
......@@ -17,10 +17,16 @@ while test $# -gt 0; do
for file in `find $current -type f -name "*.java"` ; do
RESULTS=`javac $file`
if [ "$RESULTS" != "" ] ; then
echo $RESULTS
error=true
#if [ "$RESULTS" != "" ] ; then
#echo $RESULTS
#error=true
#fi
if [ $RESULTS =~ error\:(.*) ] ; then
echo "Error: ${BASH_REMATCH[2]}"
error=true
fi
done
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment