Skip to content

Commit

Permalink
delete downloads and staging_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Aug 7, 2024
1 parent 4a5a6bc commit 3847660
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/pre_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3847660

Please sign in to comment.