fix(mdb): use relative path
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-08-05 13:24:48 +02:00
parent 1dda78c438
commit 6054e0bef3
1 changed files with 2 additions and 1 deletions

View File

@ -89,10 +89,11 @@ module.exports = Self => {
const destinationBranch = path.join(branchPath, `${appName}.7z`);
const destinationRoot = path.join(accessContainer.client.root, `${appName}.7z`);
const destinationRelative = `../../.archive/${appName}/${newVersion}.7z`;
try {
await fs.unlink(destinationBranch);
} catch (e) {}
await fs.symlink(destinationFile, destinationBranch);
await fs.symlink(destinationRelative, destinationBranch);
if (branch == 'master') {
try {