From 84fc71722c1742c0f51fb4b89317717ae4a987df Mon Sep 17 00:00:00 2001 From: sickcodes Date: Thu, 4 Mar 2021 11:42:36 +0000 Subject: [PATCH] Syntax error: `elif` obviously needs a `; then` --- custom/generate-specific-bootdisk.sh | 4 ++-- custom/generate-unique-machine-values.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/custom/generate-specific-bootdisk.sh b/custom/generate-specific-bootdisk.sh index 1dadfe5..62e2005 100755 --- a/custom/generate-specific-bootdisk.sh +++ b/custom/generate-specific-bootdisk.sh @@ -191,9 +191,9 @@ generate_bootdisk () { if [[ "${MASTER_PLIST}" ]]; then [[ -e "${MASTER_PLIST}" ]] || echo "Could not find: ${MASTER_PLIST}" - elif [[ "${MASTER_PLIST}" ]] && [[ "${MASTER_PLIST_URL}" ]]; + elif [[ "${MASTER_PLIST}" ]] && [[ "${MASTER_PLIST_URL}" ]]; then echo 'You specified both a custom plist file AND a custom plist url. Use one or the other.' - elif [[ "${MASTER_PLIST_URL}" ]]; + elif [[ "${MASTER_PLIST_URL}" ]]; then wget -o "./${MASTER_PLIST:=/config-custom.plist}" "${MASTER_PLIST_URL}" \ || echo "Could not download ${MASTER_PLIST_URL}" && exit 1 else diff --git a/custom/generate-unique-machine-values.sh b/custom/generate-unique-machine-values.sh index 811f4b5..0aee356 100755 --- a/custom/generate-unique-machine-values.sh +++ b/custom/generate-unique-machine-values.sh @@ -247,9 +247,9 @@ generate_serial_sets () { if [[ "${MASTER_PLIST}" ]]; then [[ -e "${MASTER_PLIST}" ]] || echo "Could not find: ${MASTER_PLIST}" - elif [[ "${MASTER_PLIST}" ]] && [[ "${MASTER_PLIST_URL}" ]]; + elif [[ "${MASTER_PLIST}" ]] && [[ "${MASTER_PLIST_URL}" ]]; then echo 'You specified both a custom plist file AND a custom plist url. Use one or the other.' - elif [[ "${MASTER_PLIST_URL}" ]]; + elif [[ "${MASTER_PLIST_URL}" ]]; then wget -o "./${MASTER_PLIST:=/config-custom.plist}" "${MASTER_PLIST_URL}" \ || echo "Could not download ${MASTER_PLIST_URL}" && exit 1 else