Ignore:
Timestamp:
03/29/06 19:20:26 (7 years ago)
Author:
anarcat
Message:

use trap to call cleanup on exit so that when an error triggers exit (through -e) cleanup is still called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_domains.sh

    r924 r941  
    403403} 
    404404 
    405 trap cleanup 1 2 15 
     405trap cleanup 0 1 2 15 
    406406 
    407407# Query database 
     
    561561echo "DELETE FROM sub_domaines_standby" | $MYSQL_DELETE  
    562562 
    563 cleanup 
    564  
    565563# vim: et sw=4 
Note: See TracChangeset for help on using the changeset viewer.