1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-11 11:49:22 +00:00

fix: use BSD stat explicitly to avoid GNU coreutils conflict (#160)

This commit is contained in:
Nathan Broadbent
2025-12-26 15:43:18 +13:00
committed by GitHub
parent b09b771dfe
commit f838e9517d
4 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ clean_deep_system() {
# Skip system-protected files (restricted flag)
local item_flags
item_flags=$(command stat -f%Sf "$item" 2> /dev/null || echo "")
item_flags=$($STAT_BSD -f%Sf "$item" 2> /dev/null || echo "")
if [[ "$item_flags" == *"restricted"* ]]; then
continue
fi