diff options
| author | sickcodes <[email protected]> | 2021-03-04 11:42:36 +0000 |
|---|---|---|
| committer | sickcodes <[email protected]> | 2021-03-04 11:42:36 +0000 |
| commit | 84fc71722c1742c0f51fb4b89317717ae4a987df (patch) | |
| tree | f34a385d2cfc3dbd717512fa4108f7d19c152403 /custom/generate-specific-bootdisk.sh | |
| parent | Add -e MASTER_PLIST_URL to change the input config.plist at runtime. (diff) | |
| download | docker-osx-84fc71722c1742c0f51fb4b89317717ae4a987df.tar.xz docker-osx-84fc71722c1742c0f51fb4b89317717ae4a987df.zip | |
Syntax error: `elif` obviously needs a `; then`
Diffstat (limited to 'custom/generate-specific-bootdisk.sh')
| -rwxr-xr-x | custom/generate-specific-bootdisk.sh | 4 |
1 files changed, 2 insertions, 2 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 |