- local downloaded_pkgs=$(find /var/ -type f -name "*.pkg.tar.xz")
+cleanup_downloaded_pkgs() +{
- find /var/ -type f -name "*.pkg.tar.xz" -exec rm -f -- '{}' ;
+}
The 2 find can be merged to a common function.
btw what's the example find output? Can we limit the find depth and/or let the base dir more exact?
Thanks, Fengguang