mayhappenz
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# packages: 7zip, shred, secure-delete, cracklib-runtime, openssl, curl
|
|
||||||
set -o errtrace
|
set -o errtrace
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
IFS=$'\n\t'
|
|
||||||
|
|
||||||
|
IFS=$'\n\t'
|
||||||
unix_seconds=$(date +%s)
|
unix_seconds=$(date +%s)
|
||||||
key_path=".private_ed25519_${unix_seconds}"
|
key_path=".private_ed25519_${unix_seconds}"
|
||||||
attribution_keystore=".attribution_passphrase_${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"
|
echo -e "No random data added. ${GREEN}OK!${RESET}\n"
|
||||||
else
|
else
|
||||||
printf 'random: adding 1/2 random blocks of data (32 bytes) to outer archive...\n'
|
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 $?
|
checkcode $?
|
||||||
|
|
||||||
printf 'random: adding 2/2 random blocks of data (32 bytes) to inner archive...\n'
|
printf 'random: adding 2/2 random blocks of data (32 bytes) to inner archive...\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user