mirror of
https://github.com/tw93/Mole.git
synced 2026-02-11 22:53:59 +00:00
fix: Add Library directory existence check to clean script and enhance test script for bats version compatibility.
This commit is contained in:
@@ -18,6 +18,10 @@ clean_user_essentials() {
|
||||
}
|
||||
|
||||
clean_empty_library_items() {
|
||||
if [[ ! -d "$HOME/Library" ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
local -a empty_dirs=()
|
||||
while IFS= read -r -d '' dir; do
|
||||
[[ -d "$dir" ]] && empty_dirs+=("$dir")
|
||||
|
||||
Reference in New Issue
Block a user