From: Ian Jackson Date: Thu, 1 Oct 2020 14:18:33 +0000 (+0100) Subject: standalone: Use mkdir -p X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1e14e6f7dc51aa91414895562ca9e27c17d3dcfe;p=people%2Faperard%2Fosstest.git standalone: Use mkdir -p These two mkdir calls could fail if standalone-generate-dump-flight-runvars is run without a log directory, because they were not concurrency-correct. mkdir -p should fix that. Signed-off-by: Ian Jackson --- diff --git a/standalone b/standalone index 9553d6c9..4d1f3513 100755 --- a/standalone +++ b/standalone @@ -181,12 +181,8 @@ check_repos() { } ensure_logs() { - if [ ! -d "logs" ] ; then - mkdir "logs" - fi - if [ ! -d "logs/$flight" ] ; then - mkdir "logs/$flight" - fi + mkdir -p "logs" + mkdir -p "logs/$flight" } with_logging() {