File: error.sh

package info (click to toggle)
nanoblogger 3.3~rc5-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 628 kB
  • ctags: 129
  • sloc: sh: 2,790; xml: 98; makefile: 36
file content (18 lines) | stat: -rw-r--r-- 165 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Module for error handling

# function to die with a message
die(){
cat <<-EOF
	$@
EOF
exit 1
}

nb_msg(){
if [ "$VERBOSE" != 0 ]; then
	cat <<-EOF
		$@
	EOF
fi
}