add proper return value

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
immarvin 2012-11-28 06:29:39 +00:00
parent e160deefd5
commit 71f63bf1dc

View File

@ -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;