update/gc: set traps after cd to project dir
commiteed2bf1e75083af8206e9a1922b517f7f39087f4
authorKyle J. McKay <mackyle@gmail.com>
Sun, 15 Feb 2015 01:36:49 +0000 (14 17:36 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 15 Feb 2015 01:36:49 +0000 (14 17:36 -0800)
treed2e1529afbe070ac13f637a776f82a9020479385
parentf4aa88f2b296e3ca8a4e6e68700a163a37def1c2
update/gc: set traps after cd to project dir

The exit trap shows a message that's not very helpful unless
we've already completed the cd to the project directory.

Wait until after the cd to enable the EXIT trap and make sure
it runs on INT and TERM by setting traps for those as well.
jobd/gc.sh
jobd/update.sh