Skip to content

Commit

Permalink
Merge pull request sickcodes#2 from sickcodes/force-envs
Browse files Browse the repository at this point in the history
Force envs, required for anything further than mere serials to tsv
  • Loading branch information
sickcodes authored Mar 9, 2021
2 parents 1ba588a + 7c1b71a commit 51c8ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate-unique-machine-values.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 51c8ab1

Please sign in to comment.