Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-1199 lbuild: Fix error handling
[fs/lustre-release.git]
/
contrib
/
lbuild
/
funcs.sh
diff --git
a/contrib/lbuild/funcs.sh
b/contrib/lbuild/funcs.sh
index
bbd7709
..
53854f7
100644
(file)
--- a/
contrib/lbuild/funcs.sh
+++ b/
contrib/lbuild/funcs.sh
@@
-6,16
+6,15
@@
cleanup() {
error() {
local msg="$1"
- [ -n "$msg" ] && echo -e "\n${0##*/}: $msg" >&$STDOUT
-
+ if [ -n "$msg" ]; then
+ echo -e "\n${0##*/}: $msg" >&$STDOUT
+ fi
}
fatal() {
-
cleanup
error "$2"
exit $1
-
}
#