diff --git a/action-scripts.c b/action-scripts.c index 19920f196..f8537c490 100644 --- a/action-scripts.c +++ b/action-scripts.c @@ -61,7 +61,7 @@ int add_script(char *path, int arg) if (script == NULL) return 1; - script->path = optarg; + script->path = path; script->arg = arg; list_add(&script->node, &opts.scripts);