Quit after signal
This commit is contained in:
		
							parent
							
								
									bc804383a1
								
							
						
					
					
						commit
						7e402a21bf
					
				@ -41,6 +41,7 @@ cleanup() {
 | 
				
			|||||||
    # DELETE BROKEN IMAGES
 | 
					    # DELETE BROKEN IMAGES
 | 
				
			||||||
    printf '%s\n' "Removing incomplete thumbnails." >&2
 | 
					    printf '%s\n' "Removing incomplete thumbnails." >&2
 | 
				
			||||||
    find $THUMBNAIL_PATH -name "*_tmp.*" -exec rm -v "{}" \;
 | 
					    find $THUMBNAIL_PATH -name "*_tmp.*" -exec rm -v "{}" \;
 | 
				
			||||||
 | 
					    exit 1
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
trap cleanup 1 2 3 6
 | 
					trap cleanup 1 2 3 6
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user