aboutsummaryrefslogtreecommitdiff
blob: efbf9334409d9b1ba4bcc82060a3d7326fee83e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
die(){
    echo "Die is called. Something went wrong while interpreting"
}

has() {
    hasq "$@"
}

hasq() {
    for item in ${*:2}
    do
        [[ $item == $1 ]] && return 0
    done
    return 1
}

EXPORT_FUNCTIONS() {
    if [ -z "$ECLASS" ]; then 
        die "EXPORT_FUNCTIONS without a defined ECLASS"
    fi   
    $__export_funcs_var="$__export_funcs_var $*" 
}