From 67fc4d36d3bafef33607765fcf8c83551d952879 Mon Sep 17 00:00:00 2001 From: Miguel Andres-Martinez Date: Thu, 5 Dec 2024 09:03:34 +0100 Subject: [PATCH] add cd - after destination operations in esm_master --- src/esm_master/software_package.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/esm_master/software_package.py b/src/esm_master/software_package.py index a79b1e7c7..e1fbce97f 100644 --- a/src/esm_master/software_package.py +++ b/src/esm_master/software_package.py @@ -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 = []