File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -27,21 +27,15 @@ def setup_repositories():
27
27
"defang" : "https://github.com/DefangLabs/defang.git"
28
28
}
29
29
30
- # Change to the temporary directory
31
- original_dir = os .getcwd ()
32
- os .chdir (tmp_dir )
33
-
34
30
# Clone each repository
35
31
for repo_name , repo_url in repos .items ():
36
- clone_repository (repo_url , repo_name )
37
-
38
- # Return to the original directory
39
- os .chdir (original_dir )
32
+ clone_repository (repo_url , os .path .join (tmp_dir , repo_name ))
40
33
41
34
def run_prebuild_script ():
42
35
""" Run the 'prebuild.sh' script located in the .tmp directory. """
43
36
os .chdir (".tmp" )
44
37
script_path = os .path .join ("./" , "prebuild.sh" ) # Ensure the path is correct
38
+ os .chdir (".." )
45
39
if os .path .exists (script_path ):
46
40
print ("Running prebuild.sh..." )
47
41
try :
@@ -172,8 +166,5 @@ def recursive_parse_directory(root_dir):
172
166
if __name__ == "__main__" :
173
167
setup_repositories ()
174
168
run_prebuild_script ()
175
- os .chdir ('../../' )
176
- print (os .listdir ('.' ))
177
169
parse_markdown () # Start parsing logic after all setups
178
- print (os .listdir ('.' ))
179
170
print ("All processes completed successfully." )
You can’t perform that action at this time.
0 commit comments