This commit is contained in:
2026-05-23 05:46:02 -06:00
parent 4ed43dab2d
commit 6356b9d6ac
7 changed files with 37 additions and 19 deletions
+16 -13
View File
@@ -69,26 +69,29 @@ if [[ "$attribution_passphrase" != "$attribution_passphrase_check" ]]; then
exit 1
else
echo -e "attribution_passphrase: \033[0;32mOK!\033[0m"
echo "$attribution_passphrase" > "attribution_passphrase_${unix_seconds}.txt
fi
unset attribution_passphrase_check
unset attribution_passphrase
{
printf '%s' "$attribution_passphrase"
cat "$out_dir/contents.7z"
} | sha512sum | awk '{print $1}' > "$out_dir/attribution.sha512"
} | sha512sum | awk '{print $1}' > "$out_dir/attribution-checksum.sha512"
printf "sanity checking: changing working directory to $out_dir"
cd "$out_dir"
checkcode $?
printf "sanity checking: verification"
bash verify-everything.sh
checkcode $?
printf "sanity checking: validate attribution passphrase"
bash test_validation_passphrase.sh
checkcode $?
printf "sanity checking: returning"
cd ..
checkcode $?
# printf "sanity checking: changing working directory to $out_dir"
# cd "$out_dir"
# checkcode $?
# printf "sanity checking: verification"
# bash verify-everything.sh
# checkcode $?
# printf "sanity checking: validate attribution passphrase"
# bash test_validation_passphrase.sh
# checkcode $?
# printf "sanity checking: returning"
# cd ..
# checkcode $?
printf "7z archiving outer dir"
7z a "./out.7z" "$out_dir"
checkcode $?