mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-12-22 05:51:32 -06:00
Fix shell
This commit is contained in:
parent
31247a5f63
commit
7f7a24f1d3
17
Dockerfile
17
Dockerfile
@ -149,17 +149,12 @@ WORKDIR /home/arch/OSX-KVM
|
|||||||
ARG SHORTNAME=
|
ARG SHORTNAME=
|
||||||
|
|
||||||
# VERSION will just set the appropriate shortname
|
# VERSION will just set the appropriate shortname
|
||||||
RUN [[ "${SHORTNAME}" ]] || \
|
RUN if [[ ! "${SHORTNAME}" ]]; then \
|
||||||
if [[ $(bc <<< "${VERSION} >= 10.13") = 0 ]]; then \
|
{ [[ $(bc <<< "${VERSION} >= 10.13") = 0 ]] && export SHORTNAME=high-sierra ; } \
|
||||||
export SHORTNAME=high-sierra \
|
|| { [[ $(bc <<< "${VERSION} >= 10.14") = 0 ]] && export SHORTNAME=mojave ; } \
|
||||||
; elif [[ $(bc <<< "${VERSION} >= 10.14") = 0 ]]; then \
|
|| { [[ $(bc <<< "${VERSION} >= 10.15") = 0 ]] && export SHORTNAME=catalina ; } \
|
||||||
export SHORTNAME=mojave \
|
|| { [[ $(bc <<< "${VERSION} >= 11.6") = 0 ]] && export SHORTNAME=big-sur ; } \
|
||||||
; elif [[ $(bc <<< "${VERSION} >= 10.15") = 0 ]]; then \
|
|| { [[ $(bc <<< "${VERSION} > 11.6") = 0 ]] && export SHORTNAME=monterey ; } \
|
||||||
export SHORTNAME=catalina \
|
|
||||||
; elif [[ $(bc <<< "${VERSION} >= 11.6") = 0 ]]; then \
|
|
||||||
export SHORTNAME=big-sur \
|
|
||||||
; elif [[ $(bc <<< "${VERSION} > 11.6") = 0 ]]; then \
|
|
||||||
export SHORTNAME=monterey \
|
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
RUN make
|
RUN make
|
||||||
|
Loading…
Reference in New Issue
Block a user