Skip to content

Commit 3c915c8

Browse files
MoralCodebbhtt
authored andcommitted
node: Quote PWD and FLATPAK_BUILDER_BUILDDIR so it can handle spaces
Fixes #445
1 parent 93ba296 commit 3c915c8

File tree

1 file changed

+2
-2
lines changed
  • node/flatpak_node_generator/providers

1 file changed

+2
-2
lines changed

node/flatpak_node_generator/providers/npm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,14 +501,14 @@ def _finalize(self) -> None:
501501
patch_dest = patch_dest.with_name(patch_dest.name + '.sh')
502502

503503
self.gen.add_script_source(patch_commands[lockfile], patch_dest)
504-
patch_all_commands.append(f'$FLATPAK_BUILDER_BUILDDIR/{patch_dest}')
504+
patch_all_commands.append(f'"$FLATPAK_BUILDER_BUILDDIR"/{patch_dest}')
505505

506506
patch_all_dest = self.gen.data_root / 'patch-all.sh'
507507
self.gen.add_script_source(patch_all_commands, patch_all_dest)
508508

509509
if not self.no_autopatch:
510510
# FLATPAK_BUILDER_BUILDDIR isn't defined yet for script sources.
511-
self.gen.add_command(f'FLATPAK_BUILDER_BUILDDIR=$PWD {patch_all_dest}')
511+
self.gen.add_command(f'FLATPAK_BUILDER_BUILDDIR="$PWD" {patch_all_dest}')
512512

513513
if self.index_entries:
514514
for path, entry in self.index_entries.items():

0 commit comments

Comments
 (0)