From 71f63bf1dcf65e052268710a2e22f5bf760d7214 Mon Sep 17 00:00:00 2001 From: immarvin Date: Wed, 28 Nov 2012 06:29:39 +0000 Subject: [PATCH] add proper return value git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/redirectps | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/redirectps b/xCAT/postscripts/redirectps index 2bbf2f0f1..484abdc49 100755 --- a/xCAT/postscripts/redirectps +++ b/xCAT/postscripts/redirectps @@ -11,7 +11,7 @@ if (!$ENV{'NFSSERVER'}) { `logger -t xcat -p local4.err "environment variable does not exist, exiting..."`; - exit; + exit -1; } my $nfsserver = $ENV{'NFSSERVER'}; @@ -87,8 +87,10 @@ sub runcmd $errmsg .= $err; } `logger -t xcat -p local4.err "$errmsg"`; - exit; + exit -1; } } return $rc; } + +exit 0;