__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
 | 
					            then continue
 | 
				
			||||||
            fi
 | 
					            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 "$setfacl_exec -x \"$remove\" \"$acl_path\""
 | 
				
			||||||
            echo "removed '$no_bits'" >> "$__messages_out"
 | 
					            echo "removed '$remove'" >> "$__messages_out"
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue