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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user