Skip to content

Commit

Permalink
add cd - after destination operations in esm_master
Browse files Browse the repository at this point in the history
(cherry picked from commit 67fc4d3)
  • Loading branch information
mandresm committed Dec 5, 2024
1 parent 48c1068 commit e79bc22
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/esm_master/software_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,8 @@ def get_command_list(self, setup_info, vcs, general):
if isinstance(commands, str):
commands = [commands]
if not todo == "get":
directories_up = self.destination.split("/")
dir_up = ""
for directory in directories_up:
if len(directory) > 0:
dir_up = f"{dir_up}../"
commands.insert(0, "cd " + self.destination)
commands.append(f"cd {dir_up}")
commands.append(f"cd -")
if todo == "get":
if self.coupling_changes:
commands = []
Expand Down

0 comments on commit e79bc22

Please sign in to comment.