mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-11-23 02:39:59 +08:00
source "${ENV:=/env}" logic
This commit is contained in:
parent
f2a49b046b
commit
84326051ca
@ -279,10 +279,9 @@ CMD sudo chown "$(id -u)":"$(id -g)" "${IMAGE_PATH}" "${BOOTDISK}" 2>/dev/null |
|
|||||||
--bootdisks \
|
--bootdisks \
|
||||||
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||||
--output-env "${ENV:=/env}" \
|
--output-env "${ENV:=/env}" \
|
||||||
&& source "${ENV}" \
|
|
||||||
; } \
|
; } \
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
source /env \
|
source "${ENV:=/env}" \
|
||||||
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
||||||
--model "${DEVICE_MODEL}" \
|
--model "${DEVICE_MODEL}" \
|
||||||
--serial "${SERIAL}" \
|
--serial "${SERIAL}" \
|
||||||
|
@ -151,10 +151,9 @@ CMD echo "${BOILERPLATE}" \
|
|||||||
--bootdisks \
|
--bootdisks \
|
||||||
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||||
--output-env "${ENV:=/env}" \
|
--output-env "${ENV:=/env}" \
|
||||||
&& source "${ENV}" \
|
|
||||||
; } \
|
; } \
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
source /env \
|
source "${ENV:=/env}" \
|
||||||
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
||||||
--model "${DEVICE_MODEL}" \
|
--model "${DEVICE_MODEL}" \
|
||||||
--serial "${SERIAL}" \
|
--serial "${SERIAL}" \
|
||||||
|
@ -124,10 +124,9 @@ CMD sudo chown "$(id -u)":"$(id -g)" "${IMAGE_PATH}" "${BOOTDISK}" 2>/dev/null |
|
|||||||
--bootdisks \
|
--bootdisks \
|
||||||
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||||
--output-env "${ENV:=/env}" \
|
--output-env "${ENV:=/env}" \
|
||||||
&& source "${ENV}" \
|
|
||||||
; } \
|
; } \
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
source /env \
|
source "${ENV}" \
|
||||||
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
||||||
--model "${DEVICE_MODEL}" \
|
--model "${DEVICE_MODEL}" \
|
||||||
--serial "${SERIAL}" \
|
--serial "${SERIAL}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user