[PATCH 05/10] hal: Clean up scripts in tools

Victor Lowther victor.lowther at gmail.com
Tue Mar 25 18:48:48 PDT 2008


First idea for cleaning up environment variable checking did not work out.

This code takes into account all the different ways that the environment
varaibles are checked

Converted most of the scripts to use the new code.
---
 tools/hal-functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/hal-functions b/tools/hal-functions
index f37004a..b4a1ef9 100755
--- a/tools/hal-functions
+++ b/tools/hal-functions
@@ -35,7 +35,7 @@ hal_check_env() {
 		echo "Missing or empty environment variable $2" >&2
 	fi
         echo "This script should be started by hald." >&2
-        exit 1
+        return 1
 fi
 
 hal_call_backend() {
-- 
1.5.4.3



More information about the hal mailing list