From 5f52eefe4827be2da4c0631103f00fc1e8d19985 Mon Sep 17 00:00:00 2001 From: Stefan Marr Date: Wed, 11 Jan 2023 13:03:39 +0000 Subject: [PATCH] =?UTF-8?q?Only=20update=20submodule=20when=20it=E2=80=99s?= =?UTF-8?q?=20not=20there=20yet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - this is really getting into the way of developing the core-lib… Signed-off-by: Stefan Marr --- som.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/som.sh b/som.sh index 2e8cffe..20d33bb 100755 --- a/som.sh +++ b/som.sh @@ -3,6 +3,10 @@ pushd `dirname $0` > /dev/null SCRIPT_PATH=`pwd` popd > /dev/null -git --work-tree=${SCRIPT_PATH} submodule update --init --recursive > /dev/null 2>&1 +if [ ! -f "${SCRIPT_PATH}/core-lib/.git" ] +then + echo Initializing core-lib submodule to have access to the required standard library + git --work-tree=${SCRIPT_PATH} submodule update --init --recursive > /dev/null 2>&1 +fi exec node ${SCRIPT_PATH}/src/node.js "$@"