When building for the first time, the log directory doesn't exist.
This fix makes sure it's created.

Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 build.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build.sh b/build.sh
index 6f3ba9e7..e9fa57f6 100755
--- a/build.sh
+++ b/build.sh
@@ -43,6 +43,7 @@ build()
 {
     machine="$1"
     parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | 
bc)
+    mkdir -p logs
     log="logs/build_${machine}_$(date '+%s').log"
 
     echo "starting to building for ${machine}: ${log}"
-- 
2.24.0

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to