Commit b6c3270b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

scripts: Exit early if no scripts passed

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 61b8c9da
......@@ -28,6 +28,9 @@ int run_scripts(enum script_actions act)
pr_debug("Running %s scripts\n", action);
if (unlikely(list_empty(&opts.scripts)))
return 0;
if (setenv("CRTOOLS_SCRIPT_ACTION", action, 1)) {
pr_perror("Can't set CRTOOLS_SCRIPT_ACTION=%s", action);
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment