mayhappenz
This commit is contained in:
+3
-1
@@ -16,6 +16,8 @@ out/content/*
|
||||
*/*.7z
|
||||
*/*.sha512
|
||||
*/*.sha256
|
||||
*/private_*
|
||||
*/.private_*
|
||||
*.attribution_*
|
||||
*/*.sig
|
||||
*/checksums.txt
|
||||
anonymous_signer
|
||||
|
||||
@@ -239,12 +239,12 @@ read -r random
|
||||
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 (128 bytes) to outer archive...\n'
|
||||
openssl rand -out "$out_dir/.$RANDOM" 16 >/dev/null 2>&1
|
||||
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
|
||||
checkcode $?
|
||||
|
||||
printf 'random: adding 2/2 random blocks of data (128 bytes) to inner archive...\n'
|
||||
openssl rand -out "$inner_dir/.$RANDOM" 16 >/dev/null 2>&1
|
||||
printf 'random: adding 2/2 random blocks of data (32 bytes) to inner archive...\n'
|
||||
openssl rand -out "$inner_dir/.$RANDOM" 32 >/dev/null 2>&1
|
||||
checkcode $?
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user