From 3847660bea279bb7d076b56af86a1cb2ef5b29f1 Mon Sep 17 00:00:00 2001 From: Ivan Belokobylskiy Date: Wed, 7 Aug 2024 20:28:32 +0300 Subject: [PATCH] delete downloads and staging_dir --- scripts/pre_commit.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pre_commit.sh b/scripts/pre_commit.sh index be436e1a..f88f92c2 100755 --- a/scripts/pre_commit.sh +++ b/scripts/pre_commit.sh @@ -9,6 +9,9 @@ set -eo pipefail +# free up some space +rm -rf "${OPENWRT_CUR_DIR}/dl/*" "${OPENWRT_CUR_DIR}/staging_dir/" + if [ -z "${OPENWRT_COMPILE_DIR}" ] || [ -z "${OPENWRT_CUR_DIR}" ] || [ -z "${OPENWRT_SOURCE_DIR}" ]; then echo "::error::'OPENWRT_COMPILE_DIR', 'OPENWRT_CUR_DIR' or 'OPENWRT_SOURCE_DIR' is empty" >&2 exit 1