Skip to content

Commit

Permalink
update comp.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-naumov committed Jul 29, 2024
1 parent d8b70b6 commit ab67612
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ fi

cd $1

for i in $(ls)
for i in $(ls *.c *.h)
do
if [[ -d $i ]]; then
true
else
echo "$(sha256sum $i | gawk '{ print $1 }') $2$i" | sha256sum --check >/dev/null
echo "$(sha256sum $i | gawk '{ print $1 }') $2/$i" | sha256sum --check >/dev/null
if [ $? == 1 ]; then
echo
echo
echo =====================================================================
git --no-pager diff --no-index $i $2$i
git --no-pager diff --no-index $i $2/$i
fi
fi
done

0 comments on commit ab67612

Please sign in to comment.