From 7c1b71af34baaf5ad28061d40d694ef25d5111f3 Mon Sep 17 00:00:00 2001 From: sickcodes Date: Tue, 9 Mar 2021 10:49:49 +0000 Subject: [PATCH] Force envs, required for anything further than mere serials to tsv --- generate-unique-machine-values.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate-unique-machine-values.sh b/generate-unique-machine-values.sh index f0df933..a05d238 100755 --- a/generate-unique-machine-values.sh +++ b/generate-unique-machine-values.sh @@ -294,8 +294,8 @@ ${DEVICE_MODEL}${T}${SERIAL}${T}${BOARD_SERIAL}${T}${UUID}${T}${MAC_ADDRESS}${T} EOF echo "Wrote CSV to: ${TSV_SERIAL_SETS_FILE}" - # make envs if --envs, but also if you set the env filename it will switch on by itself - if [ "${CREATE_ENVS}" ] || [ "${OUTPUT_ENV}" ] || [ "${CREATE_PLISTS}" ] || [ "${CREATE_BOOTDISKS}" ]; then + # if any of these are on, we need the env file. + if [ "${CREATE_ENVS}" ] || [ "${CREATE_PLISTS}" ] || [ "${CREATE_BOOTDISKS}" ] || [ "${OUTPUT_BOOTDISK}" ] || [ "${OUTPUT_ENV}" ]; then mkdir -p "${OUTPUT_DIRECTORY}/envs" OUTPUT_ENV_FILE="${OUTPUT_ENV:-"${OUTPUT_DIRECTORY}/envs/${SERIAL}.env.sh"}" touch "${OUTPUT_ENV_FILE}"