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>