diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index 3ba2f52..76fefef 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -1,10 +1,9 @@ #!/usr/bin/env bash -# packages: 7zip, shred, secure-delete, cracklib-runtime, openssl, curl set -o errtrace set -o nounset set -o pipefail -IFS=$'\n\t' +IFS=$'\n\t' unix_seconds=$(date +%s) key_path=".private_ed25519_${unix_seconds}" attribution_keystore=".attribution_passphrase_${unix_seconds}" @@ -240,7 +239,7 @@ if [[ -z "$random" || "$random" =~ ^[nN]$ ]]; then echo -e "No random data added. ${GREEN}OK!${RESET}\n" else printf 'random: adding 1/2 random blocks of data (32 bytes) to outer archive...\n' - openssl rand -out "$out_dir/.$RANDOM" 32 >/dev/null 2>&1 + openssl rand -out "$out_dir/.$RANDOM" >/dev/null 2>&1 checkcode $? printf 'random: adding 2/2 random blocks of data (32 bytes) to inner archive...\n'