From becdc0eb6b155239bbf866be8890e453f2f146ba Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 2 Dec 2020 14:24:39 -0800 Subject: [PATCH] Create the archives directory in deploy-logs The 'lftools deploy archives' command expects $WORKSPACE/archives to already exist. Normally it would be created by lf-infra-sysstat, but to support the use of the deploy-logs macro in jobs which do not run sysstat (and generally to make this macro entirely self-contained), ensure the archives directory exists at the start of the script. Signed-off-by: James E. Blair Change-Id: Id90c77c3f2a6a9590b9b17f9223279d21066a3cf --- shell/logs-deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/logs-deploy.sh b/shell/logs-deploy.sh index 647f9c59..7522e81b 100644 --- a/shell/logs-deploy.sh +++ b/shell/logs-deploy.sh @@ -18,6 +18,12 @@ lf-activate-venv lftools # Disable 'globbing' set -euf -o pipefail +# The 'lftool deploy archives' command below expects the archives +# directory to exist. Normally lf-infra-sysstat or similar would +# create it and add content, but to make sure this script is +# self-contained, we ensure it exists here. +mkdir -p "$WORKSPACE/archives" + function get_pattern_opts() { opts=() -- 2.16.6