-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·42 lines (38 loc) · 725 Bytes
/
test.sh
File metadata and controls
executable file
·42 lines (38 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# Copyright (c) 2015 Marcus Downing <marcus.downing@gmail.com>
# Released under the 2-clause BSD license.
# . /etc/init.d/functions.sh
. "$(dirname "$0")/functions.sh"
einfo "Foo"
einfo Spaces rock
eindent
ewarn "Bar"
ewarn Spaces rock
eoutdent
eerror "Qux"
eerror Spaces rock
echo ""
ebegin "Ged"
eend 0
eindent
ebegin "Mog"
eend 1
ebegin "Nib"
eindent
eend 1 "Fail!"
eoutdent
ebegin "Kaa"
eindent
ewend 1 "Provisos"
eoutdent
eoutdent
ebegin Spaces rock
eend 1 Yes indeedy!
echo "" 1>&2
. efunctions_ecolors
einfo "Colour is ${GOOD}good"
ewarn "Colour is ${WARN}alarming"
eerror "Colour is ${BAD}bad"
einfo "Colour is ${NORMAL}normal"
ewarn "Brackets are ${BRACKET}bracketty"
eerror "Text is ${HILITE}hilited"