summaryrefslogtreecommitdiff
path: root/.nea/docker/entrypoint.sh
blob: 416fac526b55aef5a6c22934136250b11b09dcb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 $@