Skip to content

Commit

Permalink
Only update submodule when it’s not there yet
Browse files Browse the repository at this point in the history
- this is really getting into the way of developing the core-lib…

Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Jan 11, 2023
1 parent d825cf0 commit 5f52eef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion som.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 5f52eef

Please sign in to comment.