edit-livecd : fail on error in arbitrary code
commit4b6f877cf534d75ceec1d677161a179db8f7f968
authorabhishek misra <fishy@linux.vnet.ibm.com>
Fri, 13 Nov 2009 08:36:03 +0000 (13 14:06 +0530)
committerAlan Pevec <apevec@redhat.com>
Tue, 15 Dec 2009 09:29:10 +0000 (15 10:29 +0100)
tree93bb10cc968409a601f5d9925b932ba41dab8fb6
parentc64496fbdedde70444c2905eac56f6021a559871
edit-livecd : fail on error in arbitrary code

1.  removed compound statement ( list )
     I found that its usage does not prevent trap to come into action if $CODE fails (which is desired )
     but allows commands after (list) to continue executing ( which is not desired )

2   added addExit "cd -"
    when $CODE fails and control returns to edit-livecd script, it is still in $WDIR/ex
     this causes failure when trap attempts  umount

3   added delExit "cd -"
     we no longer need it if $CODE goes well

4  added cd -
    we need it as we removed (list)

5  removed set +/- e

Signed-off-by: Abhishek Misra <fishy@linux.vnet.ibm.com>
Signed-off-by: Alan Pevec <apevec@redhat.com>
edit-livecd