diff options
| author | sickcodes <[email protected]> | 2021-11-13 07:44:57 +0000 |
|---|---|---|
| committer | sickcodes <[email protected]> | 2021-11-13 07:44:57 +0000 |
| commit | 7f7a24f1d3ea03efc619a0a2dd1409c9cf432397 (patch) | |
| tree | 6263762c4d9054d91e3a6a0ab56bdeedbeef8477 /Dockerfile | |
| parent | export SHORTNAME make OSX-KVM (diff) | |
| download | docker-osx-7f7a24f1d3ea03efc619a0a2dd1409c9cf432397.tar.xz docker-osx-7f7a24f1d3ea03efc619a0a2dd1409c9cf432397.zip | |
Fix shell
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -149,17 +149,12 @@ WORKDIR /home/arch/OSX-KVM ARG SHORTNAME= # VERSION will just set the appropriate shortname -RUN [[ "${SHORTNAME}" ]] || \ - if [[ $(bc <<< "${VERSION} >= 10.13") = 0 ]]; then \ - export SHORTNAME=high-sierra \ - ; elif [[ $(bc <<< "${VERSION} >= 10.14") = 0 ]]; then \ - export SHORTNAME=mojave \ - ; elif [[ $(bc <<< "${VERSION} >= 10.15") = 0 ]]; then \ - export SHORTNAME=catalina \ - ; elif [[ $(bc <<< "${VERSION} >= 11.6") = 0 ]]; then \ - export SHORTNAME=big-sur \ - ; elif [[ $(bc <<< "${VERSION} > 11.6") = 0 ]]; then \ - export SHORTNAME=monterey \ +RUN if [[ ! "${SHORTNAME}" ]]; then \ + { [[ $(bc <<< "${VERSION} >= 10.13") = 0 ]] && export SHORTNAME=high-sierra ; } \ + || { [[ $(bc <<< "${VERSION} >= 10.14") = 0 ]] && export SHORTNAME=mojave ; } \ + || { [[ $(bc <<< "${VERSION} >= 10.15") = 0 ]] && export SHORTNAME=catalina ; } \ + || { [[ $(bc <<< "${VERSION} >= 11.6") = 0 ]] && export SHORTNAME=big-sur ; } \ + || { [[ $(bc <<< "${VERSION} > 11.6") = 0 ]] && export SHORTNAME=monterey ; } \ ; fi RUN make |