Skip to content

Commit

Permalink
Update HACKING with the actual sha256sum now that I can reproduce it on
Browse files Browse the repository at this point in the history
my laptop.

My issue was that I had empty directories.
  • Loading branch information
telyn committed Sep 18, 2017
1 parent 7b9ba96 commit 18dd08f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ To generate the hash, use the following command.

find . -type d \! -path './.*' \! -path './vendor/*' | sha256sum

# sha256sum: a549ef4fc1780cd68becff76ac6979d587983c5c0851d1bc803792b67b2bd75f
# sha256sum: 77bfeae54ad286e611237e9102bd0deb0e9d78d83e0cf690ea3b729da38ad4b7
2 changes: 0 additions & 2 deletions gen/test-HACKING.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/bash
set -x

EXPECTED=$(grep 'sha256sum:' HACKING)
EXPECTED=$(echo -e "${EXPECTED##*sha256sum: }" | tr -d '[[:space:]]')

TREE=$(find . -type d \! -path './vendor/*' \! -path './.*' | sort)
echo -e "$TREE" | xxd

ACTUAL=$(echo -e "$TREE" | sha256sum)
ACTUAL=$(echo -e "${ACTUAL%% -}" | tr -d '[[:space:]]')
Expand Down

0 comments on commit 18dd08f

Please sign in to comment.