__acl: fix removal in freebsd
This commit is contained in:
parent
186ce77bb2
commit
108e46abee
1 changed files with 8 additions and 3 deletions
|
@ -99,10 +99,15 @@ then
|
|||
then continue
|
||||
fi
|
||||
|
||||
no_bits="$( echo "$acl" | sed 's/:...$//' )"
|
||||
if echo "$os" | grep -Eq 'macosx|freebsd'
|
||||
then
|
||||
remove="$acl"
|
||||
else
|
||||
remove="$( echo "$acl" | sed 's/:...$//' )"
|
||||
fi
|
||||
|
||||
echo "$setfacl_exec -x \"$no_bits\" \"$acl_path\""
|
||||
echo "removed '$no_bits'" >> "$__messages_out"
|
||||
echo "$setfacl_exec -x \"$remove\" \"$acl_path\""
|
||||
echo "removed '$remove'" >> "$__messages_out"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue