@@ -58,23 +58,13 @@ def build(profile: str = typer.Option(None, "--profile", "-p", callback=unsuppor
5858
5959 if clean :
6060 # Clean main build directory and any subproject build directories
61- clean_cmd = """
62- cd /home/app && \
63- cmake --build build --target clean && \
64- rm -rf build &&
65- """
66- run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "bash" , "-c" , clean_cmd ], stream_output = True )
61+ command = "cd /home/app && cmake --build build --target clean && rm -rf build"
62+ run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "sh" , "-c" , command ], stream_output = True )
6763 print ("[blue]Cleaned build directories.[/blue]" )
6864 else :
6965 # Configure and build in one command
70- build_cmd = """
71- cd /home/app && \
72- mkdir -p build && \
73- cd build && \
74- cmake .. && \
75- cmake --build .
76- """
77- run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "bash" , "-c" , build_cmd ], stream_output = True )
66+ command = "cd /home/app && mkdir -p build && cd build && cmake .. && cmake --build ."
67+ run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "sh" , "-c" , command ], stream_output = True )
7868 else : # Repo uses Make, so execute Make commands.
7969 print ("[bold blue]Makefile project detected." )
8070 if clean :
0 commit comments