diff options
-rw-r--r-- | redo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/redo.c b/redo.c index a702d0d..227d9db 100644 --- a/redo.c +++ b/redo.c @@ -673,10 +673,7 @@ run_script(char *target, int implicit) snprintf(rel_target, sizeof rel_target, "%s%s%s", dirprefix, (*dirprefix ? "/" : ""), target); - if (dirprefix) - setenv("REDO_DIRPREFIX", dirprefix, 1); - else - unsetenv("REDO_DIRPREFIX"); + setenv("REDO_DIRPREFIX", dirprefix, 1); pid = fork(); if (pid < 0) { |