Skip to content
Snippets Groups Projects
Commit 477af41b authored by Stephan's avatar Stephan
Browse files

build.sh: create status directory before writing status file

parent 6b306847
No related branches found
Tags TESTING_FIRMWARE_8.1.7
No related merge requests found
Pipeline #2773 passed with stages
......@@ -964,7 +964,9 @@ write_compile_status()
local config="$1"
local status="$2"
local file="$3"
echo "{\"config\":\"${config}\", \"date\":\"$(date)\", \"status\":\"${status}\"}" > "${file}"
mkdir -p $(dirname $file)
test "$status" = "0" && d="$(date)" | d=""
echo "{\"config\":\"${config}\", \"date\":\"$d\", \"status\":\"${status}\"}" > "${file}"
}
# ---------- create directories: dl, workdir -----------
# only create top-level directories if thoses do not not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment