deploy.sh: Move notify() to globals.sh 51/51251/7
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 26 Jan 2018 02:50:10 +0000 (03:50 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 5 Feb 2018 00:12:06 +0000 (01:12 +0100)
commit30d5ba634a5c249697509d7c4f29f4aca0597457
tree64f736c03ae335f9ddeedf3074deaea651031d9e
parent965310d4c0fee5739b6a6a8ff4a40b2ee6c9c0c5
deploy.sh: Move notify() to globals.sh

Extend `notify` to 4 variants:

- notify_i = inline (no newline) colored output;
- notify   = `notify_i` + trailing '\n';
- notify_n = `notify` + extra '\n' before and after;
- notify_e = `notify` + stderr output + exit;

This allows us to remove '\n' and cleanup the code a bit.
While at it, fix some 'NOTE' messages going to stderr instead of
stdout.

Change-Id: I682e3344ae9e307c4a68ab31c7766bc91b12ee58
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
ci/deploy.sh
mcp/scripts/globals.sh