This commit is contained in:
Lance Vick 2020-11-12 15:04:32 -08:00
parent 4ed7bed2d5
commit b6805514b4
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 3 additions and 2 deletions

5
siglog
View File

@ -65,12 +65,13 @@ verify_file() {
} }
cmd_manifest() { cmd_manifest() {
#TODO: If this is a git repo, use git to decide what files go in manifest
mkdir -p .siglog mkdir -p .siglog
find . \ find . \
-type f \ -type f \
-not -path "./.git/*" \ -not -path "./.git/*" \
-not -path "./.siglog/*" \ -not -path "./.siglog/*" \
-exec openssl sha256 -r {} \; \ -exec openssl sha256 -r {} \; \
| sed 's/ \*/ /g' \ | sed 's/ \*/ /g' \
| LC_ALL=C sort -k2 \ | LC_ALL=C sort -k2 \
> .siglog/manifest.txt > .siglog/manifest.txt