mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-12-22 05:51:32 -06:00
wget -O case sensitive, silence source /env errors.
This commit is contained in:
parent
84fc71722c
commit
45a5f2c074
@ -319,8 +319,8 @@ CMD sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDIS
|
|||||||
--output-env "${ENV:=/env}" || exit 1 \
|
--output-env "${ENV:=/env}" || exit 1 \
|
||||||
; } \
|
; } \
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
source "${ENV:=/env}" \
|
source "${ENV:=/env}" 2>/dev/null \
|
||||||
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
; ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
--model "${DEVICE_MODEL}" \
|
--model "${DEVICE_MODEL}" \
|
||||||
--serial "${SERIAL}" \
|
--serial "${SERIAL}" \
|
||||||
|
@ -162,8 +162,8 @@ CMD echo "${BOILERPLATE}" \
|
|||||||
--output-env "${ENV:=/env}" || exit 1 \
|
--output-env "${ENV:=/env}" || exit 1 \
|
||||||
; } \
|
; } \
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
source "${ENV:=/env}" \
|
source "${ENV:=/env}" 2>/dev/null \
|
||||||
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
; ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
--model "${DEVICE_MODEL}" \
|
--model "${DEVICE_MODEL}" \
|
||||||
--serial "${SERIAL}" \
|
--serial "${SERIAL}" \
|
||||||
|
@ -132,8 +132,8 @@ CMD sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDIS
|
|||||||
--output-env "${ENV:=/env}" || exit 1 \
|
--output-env "${ENV:=/env}" || exit 1 \
|
||||||
; } \
|
; } \
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
source "${ENV:=/env}" \
|
source "${ENV:=/env}" 2>/dev/null \
|
||||||
|| ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
; ./Docker-OSX/custom/generate-specific-bootdisk.sh \
|
||||||
--master-plist-url="${MASTER_PLIST_URL}" \
|
--master-plist-url="${MASTER_PLIST_URL}" \
|
||||||
--model "${DEVICE_MODEL}" \
|
--model "${DEVICE_MODEL}" \
|
||||||
--serial "${SERIAL}" \
|
--serial "${SERIAL}" \
|
||||||
@ -142,8 +142,7 @@ CMD sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDIS
|
|||||||
--mac-address "${MAC_ADDRESS}" \
|
--mac-address "${MAC_ADDRESS}" \
|
||||||
--width "${WIDTH:-1920}" \
|
--width "${WIDTH:-1920}" \
|
||||||
--height "${HEIGHT:-1080}" \
|
--height "${HEIGHT:-1080}" \
|
||||||
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" || exit 1 \
|
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}"
|
||||||
; } \
|
|
||||||
; case "$(file --brief /bootdisk)" in \
|
; case "$(file --brief /bootdisk)" in \
|
||||||
QEMU\ QCOW2\ Image* ) export BOOTDISK=/bootdisk \
|
QEMU\ QCOW2\ Image* ) export BOOTDISK=/bootdisk \
|
||||||
;; \
|
;; \
|
||||||
|
@ -194,11 +194,11 @@ generate_bootdisk () {
|
|||||||
elif [[ "${MASTER_PLIST}" ]] && [[ "${MASTER_PLIST_URL}" ]]; then
|
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.'
|
echo 'You specified both a custom plist file AND a custom plist url. Use one or the other.'
|
||||||
elif [[ "${MASTER_PLIST_URL}" ]]; then
|
elif [[ "${MASTER_PLIST_URL}" ]]; then
|
||||||
wget -o "./${MASTER_PLIST:=/config-custom.plist}" "${MASTER_PLIST_URL}" \
|
wget -O "./${MASTER_PLIST:=/config-custom.plist}" "${MASTER_PLIST_URL}" \
|
||||||
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
||||||
else
|
else
|
||||||
MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist'
|
MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist'
|
||||||
wget -o "./${MASTER_PLIST:=/config-nopicker-custom.plist}" "${MASTER_PLIST_URL}" \
|
wget -O "./${MASTER_PLIST:=/config-nopicker-custom.plist}" "${MASTER_PLIST_URL}" \
|
||||||
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -250,11 +250,11 @@ generate_serial_sets () {
|
|||||||
elif [[ "${MASTER_PLIST}" ]] && [[ "${MASTER_PLIST_URL}" ]]; then
|
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.'
|
echo 'You specified both a custom plist file AND a custom plist url. Use one or the other.'
|
||||||
elif [[ "${MASTER_PLIST_URL}" ]]; then
|
elif [[ "${MASTER_PLIST_URL}" ]]; then
|
||||||
wget -o "./${MASTER_PLIST:=/config-custom.plist}" "${MASTER_PLIST_URL}" \
|
wget -O "./${MASTER_PLIST:=/config-custom.plist}" "${MASTER_PLIST_URL}" \
|
||||||
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
||||||
else
|
else
|
||||||
MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist'
|
MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist'
|
||||||
wget -o "./${MASTER_PLIST:=/config-nopicker-custom.plist}" "${MASTER_PLIST_URL}" \
|
wget -O "./${MASTER_PLIST:=/config-nopicker-custom.plist}" "${MASTER_PLIST_URL}" \
|
||||||
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user