diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index 77ebf9f..cb5039f 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -69,7 +69,7 @@ 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 + echo "$attribution_passphrase" > "attribution_passphrase_${unix_seconds}.txt" fi unset attribution_passphrase_check unset attribution_passphrase @@ -94,4 +94,11 @@ unset attribution_passphrase printf "7z archiving outer dir" 7z a "./out.7z" "$out_dir" checkcode $? +printf "moving out.7z to archives" +mv out.7z "archives/out_${unix_seconds}.7z" +checkcode $? +bash reset.sh +printf "archivin keys" +7z a "keystore/keystore_${unix_seconds}.7z" "$key_store" "${key_store}.pub" "attribution_passphrase_${unix_seconds}.txt" "attribution_passphrase_${unix_seconds}.txt" +checkcode $?