Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored May 24, 2020
1 parent 61d3859 commit 73f0517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ FILES=$(git diff --diff-filter=ACM --name-only ${HEAD_SHA} || true)

if [[ ! -z ${FILES} ]]; then
echo "Formating extensions..."
EXPECTED_EXTENSIONS=$(printf $(echo ${EXTENSIONS} | sed 's| ||g' | sed 's/,/|/g'))
EXPECTED_EXTENSIONS=".($(printf $(echo ${EXTENSIONS} | sed 's| ||g' | sed 's/,/|/g')))$"
echo "Filtering files with ${EXPECTED_EXTENSIONS}..."
CHANGED_FILES=$(printf $(echo ${FILES} | sed 's| |\\n|g') | grep -E ".(${EXPECTED_EXTENSIONS})$")
CHANGED_FILES=$(printf $(echo ${FILES} | sed 's| |\\n|g') | grep -E ${EXPECTED_EXTENSIONS})
if [[ -z ${CHANGED_FILES} ]]; then
echo "Skipping: No files to lint"
exit 0;
Expand Down

0 comments on commit 73f0517

Please sign in to comment.