Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
arzatskis committed May 28, 2020
1 parent 37305dd commit 7ca93c7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,9 @@ esac
echo "Prettifing all files..."
echo "Files:"

files=$(git diff --name-status master);

while read -r file; do
mode=$(echo "$file" | awk '{print $1}')
filePath=$(echo "$file" | awk '{print $2}')
if [ "$mode" = "M" ] || [ "$mode" = "A" ] || [ "$mode" = "AM" ]
then
prettier --write $filePath || echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS"
fi
done <<< "$files"
prettier --write $file
done <<< "$(git diff --name-only master)"

# To keep runtime good, just continue if something was changed
if _git_changed;
Expand Down

0 comments on commit 7ca93c7

Please sign in to comment.