[Cook] Aborting a cook invocation
Jerry Pendergraft
jerry at endocardial.com
Thu Jun 12 04:03:08 EST 2003
try
if [not [defined variable_y]] then
{
fail "variable_y is not defined!";
}
--
Jerry Pendergraft jerry.pendergraft at endocardial.com
Endocardial Solutions voice: 651-523-6935
1350 Energy Lane, Suite 110 fax: 651-644-7897
St Paul, MN 55108-5254 mobile: 651-491-0163
On Wed, 11 Jun 2003, Jody Hagins wrote:
>
> I want to exit gracefully from a cook invocation under certain cases.
> For example, assume I want a variable to be set on the command line when
> cook is invoked. I would like to do something like this...
>
>
>
> if [not [defined variable_y]] then
> {
> echo "variable_y is not defined!" set silent;
> exit 1;
> }
>
>
> But, there is no exit function, and I do not see a way of gracefully
> aborting.
>
>
> Thanks for any assistance!
>
>
>
More information about the Cook-users
mailing list