🐛 rmdir-empty: ignore cwd to avoid error message
This commit is contained in:
		
							parent
							
								
									a58706e9aa
								
							
						
					
					
						commit
						c540423ba3
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,5 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
# recursively delete empty directories
 | 
			
		||||
find . -depth -type d -empty -exec rmdir -v {} \;
 | 
			
		||||
find . -depth \
 | 
			
		||||
  -path "." -prune -or \
 | 
			
		||||
  -type d -empty -exec rmdir -v {} \;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue