Skip to content

Commit

Permalink
fix: Escaping all spaces on path
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed May 21, 2023
1 parent a56673a commit a2961e7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ class Packages {
// Clean up, no need for the file to lay around any more
yield (0, exec_1.exec)(`rm ${pkgFile}`);
for (const fpkg of pkg.Packages) {
const pkgLPKFile = path.join(pkgFolder, pkg.PackageBaseDir, fpkg.RelativeFilePath.replace(/ /gi, '\ '), fpkg.PackageFile);
const pkgLPKFile = path.join(pkgFolder, pkg.PackageBaseDir.replace(/ /gi, '\ '), fpkg.RelativeFilePath.replace(/ /gi, '\ '), fpkg.PackageFile.replace(/ /gi, '\ '));
switch (fpkg.PackageType) {
case 0:
case 1:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-lazarus",
"version": "3.2.10",
"version": "3.2.11",
"description": "Set up your GitHub Actions workflow with a specific version of Lazarus",
"main": "lib/main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/Packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export class Packages {

const pkgLPKFile = path.join(
pkgFolder,
pkg.PackageBaseDir,
pkg.PackageBaseDir.replace(/ /gi, '\ '),
fpkg.RelativeFilePath.replace(/ /gi, '\ '),
fpkg.PackageFile
fpkg.PackageFile.replace(/ /gi, '\ ')
);

switch (fpkg.PackageType) {
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const _version = "3.2.10";
export const _version = "3.2.11";

0 comments on commit a2961e7

Please sign in to comment.