From cfc478297ba5be8cf66e7a08d68fb2427197aafa Mon Sep 17 00:00:00 2001 From: Timo Cornelius Metzger <39711796+tcmetzger@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:14:18 -0700 Subject: [PATCH] Improve POSIX compatibility of build script (#23) --- build_rte_rrtmgp.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_rte_rrtmgp.sh b/build_rte_rrtmgp.sh index c253ce4..05a0972 100755 --- a/build_rte_rrtmgp.sh +++ b/build_rte_rrtmgp.sh @@ -1,7 +1,9 @@ -# /bin/bash +#!/bin/sh -if [ -n "$CONDA_PREFIX" ] && [ "$OS" == *"Windows"* ] || [ -z "$CONDA_PREFIX" ]; then +if [ -n "$CONDA_PREFIX" ] && [ "$OS" = *"Windows"* ]; then + export FC=gfortran +elif [ -z "$CONDA_PREFIX" ]; then export FC=gfortran fi -make -C rte-rrtmgp/build -j 2 \ No newline at end of file +make -C rte-rrtmgp/build -j 2