11 lines
199 B
Bash
11 lines
199 B
Bash
# check if run from script
|
|
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && exit 1
|
|
|
|
check_rc(){
|
|
if [ "$1" != "0" ]; then
|
|
msg_error "Error (RC:$rc)"
|
|
exit 1
|
|
else
|
|
msg_ok "OK"
|
|
fi
|
|
} |