Skip to content

Commit

Permalink
Updated to use printf.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack committed May 23, 2020
1 parent 703597c commit 31a8243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.11
LABEL maintainer="Tonye Jack <[email protected]>"

RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh grep npm
apk add --no-cache bash git openssh grep npm sed

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ FILES=$(git diff --diff-filter=ACM --name-only ${HEAD_SHA} || true)

if [[ ! -z ${FILES} ]]; then
echo "Filtering files..."
CHANGED_FILES=`echo ${FILES} | grep -E ".(js|jsx|ts|tsx)$"`
CHANGED_FILES=$(printf $(echo ${FILES} | sed 's| |\\n|g') | grep -E ".(js|jsx|ts|tsx)$")
if [[ -z ${CHANGED_FILES} ]]; then
echo "Skipping: No files to lint"
exit 0;
Expand Down

0 comments on commit 31a8243

Please sign in to comment.