Skip to content

Commit

Permalink
fix: call pwd independently from previous lines
Browse files Browse the repository at this point in the history
Restore behaviour before #534 and wrong fix in #560
  • Loading branch information
ahlinc committed Nov 17, 2024
1 parent cb2a020 commit 6c90234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def execute(self, build_plan, zip_stream, query):
with tempfile.NamedTemporaryFile(mode="w+t", delete=True) as temp_file:
path, script = action[1:]
# NOTE: Execute `pwd` to determine the subprocess shell's working directory after having executed all other commands.
script = f"{script} && pwd >{temp_file.name}"
script = f"{script}\npwd >{temp_file.name}"
p = subprocess.Popen(
script,
shell=True,
Expand Down

0 comments on commit 6c90234

Please sign in to comment.