Skip to content
Snippets Groups Projects
Verified Commit 6d608c30 authored by Leonidas Spyropoulos's avatar Leonidas Spyropoulos
Browse files

Merge branch 'delete-offload-dirs-not-artifacts' into 'master'

archbuild: delete offload build directories not just artifacts

See merge request !823
parents 5e31779a dbef3bc8
No related branches found
No related tags found
1 merge request!823archbuild: delete offload build directories not just artifacts
Pipeline #98695 passed
#!/bin/bash -e
#!/bin/bash
find /home/*/.cache/offload-build/ -mtime +15 -name '*.pkg.tar*' -delete
set -eu
shopt -s nullglob
for offload_build_cache in /home/*/.cache/offload-build; do
find "$offload_build_cache" -mindepth 1 -maxdepth 1 -type d -mtime +15 -exec rm -rf {} +
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment