diff options
| author | STAINER Thomas, NEA/SCI/DB <thomas.stainer@oecd-nea.org> | 2025-09-11 15:08:28 +0200 |
|---|---|---|
| committer | Charles BIENVENUE <charles.bienvenue@polymtl.ca> | 2025-09-11 13:08:28 +0000 |
| commit | 282c1f1ddf6d8a3a51cd30590c91db109a2b8932 (patch) | |
| tree | 041c084cc8b99f9b3cd160a6a6e0648341a54f13 /.nea/docker/entrypoint.sh | |
| parent | fc5e2591b86f0e9b810f5acee1e9160fce2f675d (diff) | |
CI additions and README markdownify
Diffstat (limited to '.nea/docker/entrypoint.sh')
| -rw-r--r-- | .nea/docker/entrypoint.sh | 22 |
1 files changed, 22 insertions, 0 deletions
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 $@ |
