From: Philipp Takacs Date: Sun, 14 Aug 2016 20:36:55 +0000 (+0200) Subject: del metafile in whatnow2 only if send don't fail X-Git-Tag: mmh-0.3~2 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=d272d4a234dad206a18167a2f806ac7628922b19;p=mmh 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. --- 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()