sum updoots
This commit is contained in:
@@ -7,8 +7,6 @@ signature_tag="file-integrity"
|
|||||||
out_dir="./out"
|
out_dir="./out"
|
||||||
inner_dir="$out_dir/contents"
|
inner_dir="$out_dir/contents"
|
||||||
|
|
||||||
mkdir -p "$inner_dir"
|
|
||||||
|
|
||||||
checkcode () {
|
checkcode () {
|
||||||
local retcode
|
local retcode
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
|
|||||||
@@ -11,47 +11,45 @@ checkcode () {
|
|||||||
if [ $retcode -ne 0 ]; then
|
if [ $retcode -ne 0 ]; then
|
||||||
echo -e "\e[31mERROR!\033[0m Response Code: $retcode"
|
echo -e "\e[31mERROR!\033[0m Response Code: $retcode"
|
||||||
else
|
else
|
||||||
printf '\e[1;32mOK!\e[0m\n'
|
printf ' \e[1;32mOK!\e[0m\n'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
printf "autoshredding these files:"
|
printf "autoshredding these files..."
|
||||||
find . -type f \( -path ".git" -o -path "keystore" -o -path "archives" \) -prune \( -name "*.sha512" -o -name "checksums*" -o -name "private_*" -o -name ".*" -o -name "*.sig" -o -name "*.7z" -o -name "anonymous_signer" \) -print -exec shred -uz {} \;
|
find . -type f \( -path ".git" -o -path "keystore" -o -path "archives" \) -prune \( -name "*.sha512" -o -name "checksums*" -o -name "private_*" -o -name ".*" -o -name "*.sig" -o -name "*.7z" -o -name "anonymous_signer" \) -print -exec shred -uz {} \;
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "nuking errant priv key files"
|
printf "nuking errant priv key files..."
|
||||||
shred -uz private_*
|
shred -uz private_*
|
||||||
checkcode $?
|
checkcode $?
|
||||||
shred -uz *.pub
|
|
||||||
checkcode $?
|
|
||||||
shred -uz attribution_passphrase_*
|
shred -uz attribution_passphrase_*
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo "autoshredding out"
|
echo "autoshredding out..."
|
||||||
srm -r -z -l -l ./out
|
srm -r -z -l -l ./out
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo "rebuilding out"
|
echo "rebuilding out..."
|
||||||
printf "making out dir structure"
|
printf "making out dir structure..."
|
||||||
mkdir -p out/contents
|
mkdir -p out/contents
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "updating out/contents/READMD.md"
|
printf "updating out/contents/READMD.md..."
|
||||||
echo "put files to verifiably archive in here" > out/contents/README.md
|
echo "put files to verifiably archive in here" > out/contents/README.md
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "updating out/README.md"
|
printf "updating out/README.md..."
|
||||||
echo "# todo: make this nice" > ./out/README.md
|
echo "# todo: make this nice" > ./out/README.md
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "making out/test_validate_passphrase.sh"
|
printf "making out/test_validate_passphrase.sh..."
|
||||||
cp test_validation_passphrase.txt out/test_validate_passphrase.sh
|
cp test_validation_passphrase.txt out/test_validate_passphrase.sh
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "making out/test_validate_passphrase.sh executable"
|
printf "making out/test_validate_passphrase.sh executable..."
|
||||||
chmod +x out/test_validate_passphrase.sh
|
chmod +x out/test_validate_passphrase.sh
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "making out/verify-everything.sh"
|
printf "making out/verify-everything.sh..."
|
||||||
cp verify-everything.txt out/verify-everything.sh
|
cp verify-everything.txt out/verify-everything.sh
|
||||||
checkcode $?
|
checkcode $?
|
||||||
printf "making out/verify-everything.sh executable"
|
printf "making out/verify-everything.sh executable"...
|
||||||
chmod +x out/verify-everything.sh
|
chmod +x out/verify-everything.sh
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user