Skip to content

Commit

Permalink
show me sha256sum for each file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-naumov committed Aug 3, 2024
1 parent 9a9279e commit 84adca8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi

cd $1

for i in $(ls *.c *.h)
for i in $(ls *.c *.h *.sh)
do
if [[ -d $i ]]; then
true
Expand All @@ -24,6 +24,8 @@ do
echo
echo =====================================================================
git --no-pager diff --no-index $i $2$i
else
echo $(sha256sum $i)
fi
fi
done

0 comments on commit 84adca8

Please sign in to comment.