Skip to content
Snippets Groups Projects
Commit 0c02a447 authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix a bug while creating initial symlinks

parent 24d69d49
No related branches found
No related tags found
1 merge request!49Merging develop into main
Pipeline #709463 passed
This commit is part of merge request !49. Comments created here will be created in the context of that merge request.
......@@ -426,7 +426,7 @@ class Handler extends BaseHandler {
if (isset($def['link']) && ($def['link'] !== $settingsPath)) {
$link = $def['link'] . '/' . $filename;
if (!$fs->exists($link)) {
$rel = substr($fs->makePathRelative($file, $projectRoot . '/' . $link), 3, -1);
$rel = substr($fs->makePathRelative($file, $projectRoot . '/' . $def['link']), 3, -1);
$fs->symlink($rel, $link);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment