Create ENV file if --bootdisks is on

This commit is contained in:
sickcodes 2021-03-09 10:10:25 +00:00
parent 238f135174
commit ff1f373fbb

View file

@ -295,7 +295,7 @@ 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}" ]; then
if [ "${CREATE_ENVS}" ] || [ "${OUTPUT_ENV}" ] || [ "${CREATE_PLISTS}" ] || [ "${CREATE_BOOTDISKS}" ]; then
mkdir -p "${OUTPUT_DIRECTORY}/envs"
OUTPUT_ENV_FILE="${OUTPUT_ENV:-"${OUTPUT_DIRECTORY}/envs/${SERIAL}.env.sh"}"
touch "${OUTPUT_ENV_FILE}"