1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 17:55:08 +00:00
Files
Mole/lib/clean/maven.sh

16 lines
423 B
Bash

#!/bin/bash
# Maven Repository Cleanup Module
set -euo pipefail
# Maven local repository cleanup.
# Path: ~/.m2/repository
# Note: This path is in the default whitelist. Remove from whitelist to enable cleanup.
clean_maven_repository() {
local maven_repo="$HOME/.m2/repository"
# Only clean if the directory exists
[[ -d "$maven_repo" ]] || return 0
safe_clean "$maven_repo"/* "Maven local repository"
}