Skip to content

Commit

Permalink
use pushd and popd, instead of cd <dir> and cd -
Browse files Browse the repository at this point in the history
  • Loading branch information
mandresm committed Dec 11, 2024
1 parent f01c000 commit a6d53db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/esm_master/software_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ def get_command_list(self, setup_info, vcs, general):
if isinstance(commands, str):
commands = [commands]
if not todo == "get":
commands.insert(0, "cd " + self.destination)
commands.append(f"cd -")
commands.insert(0, "pushd " + self.destination)
commands.append("popd")
if todo == "get":
if self.coupling_changes:
commands = []
Expand Down

0 comments on commit a6d53db

Please sign in to comment.