Skip to contentSkip to conversation

automation: allow to rerun build script

PATCH In review Olaf Hering 2 participants 2 messages May 17, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automation: allow to rerun build script

Calling build twice in the same environment will fail because the directory 'binaries' was already created before. Use mkdir -p to ignore an existing directory and move on to the actual build.

---
 automation/scripts/build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/scripts/build +1 -1
index 197d085f3e..9085cba352 100755
@@ -36,7 +36,7 @@ fi
 cp xen/.config xen-config
 
 # Directory for the artefacts to be dumped into
-mkdir binaries
+mkdir -p binaries
 
 if [[ "${CPPCHECK}" == "y" ]] && [[ "${HYPERVISOR_ONLY}" == "y" ]]; then
     # Cppcheck analysis invokes Xen-only build.
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Olaf Hering

Calling build twice in the same environment will fail because the directory 'binaries' was already created before. Use mkdir -p to ignore an existing directory and move on to the actual build.

Quoted 18 lines
---
 automation/scripts/build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/scripts/build +1 -1
index 197d085f3e..9085cba352 100755
@@ -36,7 +36,7 @@ fi
 cp xen/.config xen-config
 
 # Directory for the artefacts to be dumped into
-mkdir binaries
+mkdir -p binaries
 
 if [[ "${CPPCHECK}" == "y" ]] && [[ "${HYPERVISOR_ONLY}" == "y" ]]; then
     # Cppcheck analysis invokes Xen-only build.