Skip to content

Instantly share code, notes, and snippets.

@mcfdn
Last active December 22, 2016 10:59
Show Gist options
  • Save mcfdn/f401254c5ffccb05bb2f07108d9b785c to your computer and use it in GitHub Desktop.
Save mcfdn/f401254c5ffccb05bb2f07108d9b785c to your computer and use it in GitHub Desktop.

Revisions

  1. mcfdn revised this gist Dec 22, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion lint.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #!/bin/bash
    #

    EXITCODE=0

    if [[ -z $1 ]]
  2. mcfdn revised this gist Dec 22, 2016. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions lint.sh
    Original file line number Diff line number Diff line change
    @@ -1,22 +1,22 @@
    #!/bin/bash

    #
    EXITCODE=0

    if [[ -z $1 ]]
    then
    FILES=app
    FILES=app
    else
    FILES=$1
    FILES=$1
    fi

    for f in $(find $FILES -name '*.php')
    do
    php -l $f
    php -l $f

    if [ $? -ne 0 ]
    then
    EXITCODE=1
    fi
    if [ $? -ne 0 ]
    then
    EXITCODE=1
    fi
    done

    exit $EXITCODE
  3. mcfdn revised this gist Dec 22, 2016. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions lint.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    #!/bin/bash

    EXITCODE=0

    if [[ -z $1 ]]
    then
    FILES=app
    @@ -10,4 +12,11 @@ fi
    for f in $(find $FILES -name '*.php')
    do
    php -l $f

    if [ $? -ne 0 ]
    then
    EXITCODE=1
    fi
    done

    exit $EXITCODE
  4. mcfdn created this gist Dec 22, 2016.
    13 changes: 13 additions & 0 deletions lint.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/bin/bash

    if [[ -z $1 ]]
    then
    FILES=app
    else
    FILES=$1
    fi

    for f in $(find $FILES -name '*.php')
    do
    php -l $f
    done