From 7171852c0e7564f75506f5018f81d71ed96d9363 Mon Sep 17 00:00:00 2001 From: Nicolas Reynolds Date: Mon, 4 Jul 2011 12:19:48 -0300 Subject: Empty variables are informed all at once --- libretools.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretools.conf b/libretools.conf index a506af7..95cd5e9 100644 --- a/libretools.conf +++ b/libretools.conf @@ -64,10 +64,12 @@ for VAR in CHROOTDIR CHROOT CHCOPY CACHEDIR PARABOLAHOST LIBREDESTDIR \ BLACKLIST WORKDIR PATCHDIR REPOS ARCHES ABSLIBREGIT \ COMMITCMD DIFFTOOL FULLBUILDCMD; do + ret=0 [[ -z ${!VAR} ]] && { echo "Configure $VAR var in /etc/libretools.conf" - exit 1 + ret=1 } + [ $ret -ne 0 ] && exit 1 done source /usr/bin/libremessages -- cgit v1.2.3