From 2c6f0d728817dd1727ad13e3a12e8f4d8f5ec723 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sat, 23 May 2026 09:42:39 -0600 Subject: [PATCH] releas? --- create-attributable-archive.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index 4c5f22d..c4b963d 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -42,12 +42,12 @@ reset() { fi echo "autoshredding out..." - srm -r -z -l -l "$out_dir" + srm -r -z -l -l "$out_dir" > /dev/null 2>&1 checkcode $? echo "rebuilding out..." printf "making out dir structure..." - mkdir -p "$inner_dir" + mkdir -p "$inner_dir" > /dev/null 2>&1 checkcode $? printf "updating $inner_dir/READMD.md..." @@ -55,45 +55,45 @@ reset() { checkcode $? printf "updating $out_dir/README.md..." - echo "# todo: make this nice" > "$out_dir/README.md" + echo "# todo: make this nice" > "$out_dir/README.md" checkcode $? printf "making "$out_dir"/test_validate_passphrase.sh..." - cp test_validate_passphrase.txt "$out_dir/test_validate_passphrase.sh" + cp test_validate_passphrase.txt "$out_dir/test_validate_passphrase.sh" > /dev/null 2>&1 checkcode $? printf "making $out_dir/test_validate_passphrase.sh executable..." - chmod +x "$out_dir/test_validate_passphrase.sh" + chmod +x "$out_dir/test_validate_passphrase.sh" > /dev/null 2>&1 checkcode $? printf "making $out_dir/verify-everything.sh..." - cp verify-everything.txt "$out_dir"/verify-everything.sh + cp verify-everything.txt "$out_dir"/verify-everything.sh > /dev/null 2>&1 checkcode $? printf "making $out_dir/verify-everything.sh executable"... - chmod +x "$out_dir/verify-everything.sh" + chmod +x "$out_dir/verify-everything.sh" > /dev/null 2>&1 checkcode $? housekeeping_dirs=("archives" "keystore") for dir in "${housekeeping_dirs[@]}"; do printf "changing ownership of $dir to ${USER}..." - chown $USER:$USER -R "$dir" + chown $USER:$USER -R "$dir" > /dev/null 2>&1 checkcode $? printf "changing permissions on $dir to 700..." - chmod 700 "$dir" + chmod 700 "$dir" > /dev/null 2>&1 checkcode $? printf "finding and shredding erroneous dirs in ${dir}..." - find "$dir" -type d -exec srm -r -z -l -l "{}" \; + find "$dir" -mindepth 1 -type d -exec srm -r -z -l -l "{}" \; > /dev/null 2>&1 checkcode $? printf "finding and shredding erronious files in ${dir}..." - find "$dir" -type f \( -name "private_ed25519_*" -o -name "attribution_passphrase_*" \) -exec shred -uz "{}" \; + find "$dir" -type f \( -name "private_ed25519_*" -o -name "attribution_passphrase_*" \) -exec shred -uz "{}" \; > /dev/null 2>&1 checkcode $? printf "changing perms of files in $dir to 600..." - find "$dir" -type f -exec chmod 600 "{}" \; + find "$dir" -type f -exec chmod 600 "{}" \; > /dev/null 2>&1 checkcode $? done }