Fix ARKANIUM_OVERWRITE_RANDOM

This commit is contained in:
Dennis ten Hoove 2023-08-14 08:22:38 +02:00
parent 9881fa4ff7
commit 9565b873a5

View file

@ -58,7 +58,7 @@ cleanup_and_quit () {
# image names
gen_random_string () {
if [[ -e $ARKANIUM_OVERWRITE_RANDOM ]]; then
if [[ -v ARKANIUM_OVERWRITE_RANDOM ]]; then
random=$ARKANIUM_OVERWRITE_RANDOM
else
random=$(openssl rand -hex 100 | head -c 42)