diff options
author | ocielliottc <elliottc@objectcomputing.com> | 2023-04-25 12:15:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 12:15:47 -0500 |
commit | 516e0a2bdb9ec407b220f84e5df6cfe933d29f02 (patch) | |
tree | 7846c9bb484e20fd7ad37d8637ed3ba7c870f181 | |
parent | b93c3352cf8772ec2678c062977f645c112658aa (diff) | |
parent | b8d88174520918fe9dc563b5bc0990fe9d3571fd (diff) | |
download | MPC-516e0a2bdb9ec407b220f84e5df6cfe933d29f02.tar.gz |
Merge pull request #183 from DOCGroup/workers-invalid-directory
Fixed directory issue with -workers
-rw-r--r-- | modules/WorkspaceCreator.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/WorkspaceCreator.pm b/modules/WorkspaceCreator.pm index b8b993f8..1bd3f7e6 100644 --- a/modules/WorkspaceCreator.pm +++ b/modules/WorkspaceCreator.pm @@ -1802,7 +1802,8 @@ sub generate_project_files_fork { } $self->{'cacheok'} = $cacheok; - if ($self->cd($dir)) { + my $full = $self->path_is_relative($dir) ? "$cwd/$dir" : $dir; + if ($self->cd($full)) { if ($self->{'cacheok'} && defined $allprojects{$prkey}) { $files_written = $allprojects{$prkey}; @@ -1840,8 +1841,7 @@ sub generate_project_files_fork { ## Unable to change to the directory. ## We don't restore the state before we leave, ## but that's ok since we will be exiting soon. - return 0, $creator, $msg; - + return 0, $creator, "Unable to change directory to $full"; } ## Return things to the way they were |