diff options
-rw-r--r-- | hello-world.rsc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hello-world.rsc b/hello-world.rsc index e3ebf8a..2064bfd 100644 --- a/hello-world.rsc +++ b/hello-world.rsc @@ -9,6 +9,7 @@ :global GlobalFunctionsReady; :while ($GlobalFunctionsReady != true) do={ :delay 500ms; } +:local ExitOK false; :do { :local ScriptName [ :jobname ]; @@ -21,4 +22,6 @@ } else={ $SendNotification2 ({ origin=$ScriptName; subject="Hello..."; message="... world!" }); } -} on-error={ } +} on-error={ + :global ExitError; $ExitError $ExitOK [ :jobname ]; +} |