From d272d4a234dad206a18167a2f806ac7628922b19 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sun, 14 Aug 2016 22:36:55 +0200 Subject: [PATCH] del metafile in whatnow2 only if send don't fail If send fails, you want to keep the metafile. Without this dist wold only work, if send works on the first time. Also some metainfo don't get lost. --- uip/whatnow2.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index 00a40e1..2e3cf12 100755 --- a/uip/whatnow2.sh +++ b/uip/whatnow2.sh @@ -156,8 +156,9 @@ send() export mhfolder=`anno -list -component 'mhfolder' $mhmetafile` export mhmessages=`anno -list -component 'mhmessages' $mhmetafile` export mhannotate=`anno -list -component 'mhannotate' $mhmetafile` + exec send "$@" $mhdraft || exit $? rm -f $mhmetafile - exec send "$@" $mhdraft + exit 0 } delete() -- 1.7.10.4