this is my life now. infinite frustration cast upon me by an evil curse \

This commit is contained in:
2026-05-23 12:06:45 -06:00
parent c5bc56f136
commit 6a58e3a3e6
2 changed files with 7 additions and 4 deletions
+4 -3
View File
@@ -182,7 +182,7 @@ exit_cleanup() {
for var in $(compgen -v); do
printf "unsetting $var"
unset "$var"
unset "$var" 2>/dev/null
checkcode $?
done
}
@@ -215,7 +215,10 @@ checkcode $?
echo "inject random data y/n (default n)"
read random
#why dafuck is this opposite world?
if [[ "$random" == "" || "$random" =~ ^[nN]{1}$ ]]; then
echo -e 'no random... \e[1;32mOK!\e[0m\n'
else
printf "random: adding 1/2 random blocks of data (1024 bits, 128 bytes) to outer archive..."
openssl rand -out "$out_dir/.$RANDOM" 128 > /dev/null 2>&1
checkcode $?
@@ -223,8 +226,6 @@ if [[ "$random" == "" || "$random" =~ ^[nN]{1}$ ]]; then
printf "random: adding 2/2 random blocks of data (1024 bits, 128 bytes) to inner archive..."
openssl rand -out "$inner_dir/.$RANDOM" 128 > /dev/null 2>&1
checkcode $?
else
echo -e 'no random... \e[1;32mOK!\e[0m\n'
fi
printf "7z: compressing inner volume..."