From 282c1f1ddf6d8a3a51cd30590c91db109a2b8932 Mon Sep 17 00:00:00 2001 From: "STAINER Thomas, NEA/SCI/DB" Date: Thu, 11 Sep 2025 15:08:28 +0200 Subject: CI additions and README markdownify --- .nea/docker/entrypoint.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .nea/docker/entrypoint.sh (limited to '.nea/docker/entrypoint.sh') diff --git a/.nea/docker/entrypoint.sh b/.nea/docker/entrypoint.sh new file mode 100644 index 0000000..416fac5 --- /dev/null +++ b/.nea/docker/entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +RED='\033[1;91m' +GREEN='\033[1;92m' +BLUE='\033[1;94m' +NC='\033[0m' + + +tryit(){ + "$@" + local status=$? + if [ $status -ne 0 ]; then + echo -e "${RED}Error occurred with $1 ${NC}" >&2 + exit $status + fi + return $status +} + + +# run donjon as the default entrypoint, as donjon can run dragon +cd Donjon +tryit ./rdonjon $@ -- cgit v1.2.3