File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ statusFile=status.$RANDOM
3737fileCommand=" git status --porcelain 2>&1 > $statusFile "
3838$( eval $fileCommand )
3939
40- newlist =Y
40+ newList =Y
4141while read -r
4242do
4343 line=" $REPLY "
6464 # We had some inconsistencies with Git versions and sed versions, so hopefully this covers all cases.
6565 newFileCmd=" echo \" $line \" | sed 's/.* //'"
6666 newFile=$( eval " $newFileCmd " )
67- if [ $newlist == " Y" ] ; then
67+ if [ $newList == " Y" ] ; then
6868 # formatFiles are input to the eclipse formatter
6969 formatFiles=$PROJECT_LOCATION /$newFile
7070 checkIfFormatted=$newFile
71- newlist =N
71+ newList =N
7272 else
7373 formatFiles=" $formatFiles $PROJECT_LOCATION /$newFile "
7474 checkIfFormatted=" $checkIfFormatted $newFile "
7878 # Note the sed output is an absolute path including project location
7979 newFileCmd=" echo $line | cut -c 3- | sed -e 's|^|$PROJECT_LOCATION /|'"
8080 newFile=$( eval " $newFileCmd " )
81- if [ $newlist == " Y" ] ; then
81+ if [ $newList == " Y" ] ; then
8282 formatFiles=" $newFile "
8383 checkIfFormatted=$newFile
8484 newList=N
You can’t perform that action at this time.
0 commit comments