aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.auto
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-02-26 05:26:35 +0000
committersickcodes <[email protected]>2021-02-26 05:26:35 +0000
commitf2a49b046bb44198a0c61b27e3b1ded13312ced2 (patch)
tree0ef1e26896f6e6df188f7d4646f9518f95eb7e1a /Dockerfile.auto
parentChange `-e NOPICKER=true` to simply do `export BOOTDISK=/home/arch/OSX-KVM/Op... (diff)
downloaddocker-osx-f2a49b046bb44198a0c61b27e3b1ded13312ced2.tar.xz
docker-osx-f2a49b046bb44198a0c61b27e3b1ded13312ced2.zip
Fixed subshell logic in startup scripts.
Diffstat (limited to 'Dockerfile.auto')
-rw-r--r--Dockerfile.auto14
1 files changed, 8 insertions, 6 deletions
diff --git a/Dockerfile.auto b/Dockerfile.auto
index 0015e4a..eeb9a7b 100644
--- a/Dockerfile.auto
+++ b/Dockerfile.auto
@@ -141,19 +141,20 @@ ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a secur
CMD echo "${BOILERPLATE}" \
&& [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
- && echo "Disk is being copied between layers... Please wait a minute..." \
+ ; echo "Disk is being copied between layers... Please wait a minute..." \
&& sudo chown "$(id -u)":"$(id -g)" "${IMAGE_PATH}" "${BOOTDISK}" 2>/dev/null || true \
; [[ "${NOPICKER}" == true ]] && export BOOTDISK=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2 \
- ; [[ "${GENERATE_UNIQUE}" == true ]] \
- && ./Docker-OSX/custom/generate-unique-machine-values.sh \
+ ; [[ "${GENERATE_UNIQUE}" == true ]] && { \
+ ./Docker-OSX/custom/generate-unique-machine-values.sh \
--count 1 \
--tsv ./serial.tsv \
--bootdisks \
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
--output-env "${ENV:=/env}" \
- && source "${ENV}" \
- ; [[ "${GENERATE_SPECIFIC}" == true ]] \
- && source /env \
+ && source "${ENV}" \
+ ; } \
+ ; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
+ source /env \
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
--model "${DEVICE_MODEL}" \
--serial "${SERIAL}" \
@@ -161,6 +162,7 @@ CMD echo "${BOILERPLATE}" \
--uuid "${UUID}" \
--mac-address "${MAC_ADDRESS}" \
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
+ ; } \
; case "$(file --brief /bootdisk)" in \
QEMU\ QCOW2\ Image* ) export BOOTDISK=/bootdisk \
;; \