blob: 4f9057edee97326bce3f7d57ea6dedba03bba1d2 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8set -e
9
10if [ -d artefacts ]; then
Zelalem917b43e2020-08-04 11:39:55 -050011 # Remove everything except logs and scan-build artefacts such as
12 # .html, .js and .css files useful for offline debug of static
13 # analysis defects
14 find artefacts -type f -not \( -name "*.log" -o -name "*.html" -o -name "*.js" -o -name "*.css" \) -exec rm -f {} +
Fathi Boudra422bf772019-12-02 11:10:16 +020015fi