From: Philipp Takacs Date: Wed, 21 Nov 2018 01:34:56 +0000 (+0100) Subject: whatnow2 handle mhuse X-Git-Tag: mmh-0.4~12 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=dbf7c84b34c2d3f87c0c3cb11a04dff2c20b39e5;p=mmh whatnow2 handle mhuse If mhuse is set don't write new envirement to the metafile. mhuse is set, when comp -use is used. --- diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index 4e76766..91ff5a5 100755 --- a/uip/whatnow2.sh +++ b/uip/whatnow2.sh @@ -96,6 +96,10 @@ create() then get_editor fi + if [ "$mhuse" -eq 1 ] + then + return + fi if [ -n "$mhaltmsg" ] then anno -nodate -component 'mhaltmsg' -text "$mhaltmsg" $mhmetafile @@ -104,10 +108,6 @@ create() then anno -nodate -component 'mhdist' -text "$mhdist" $mhmetafile fi - if [ -n "$mhdist" ] - then - anno -nodate -component 'mhuse' -text "$mhuse" $mhmetafile - fi if [ -n "$mhfolder" ] then anno -nodate -component 'mhfolder' -text "$mhfolder" $mhmetafile @@ -147,7 +147,6 @@ sendfunktion() { export mhaltmsg=`anno -list -component 'mhaltmsg' "$mhmetafile"` export mhdist=`anno -list -component 'mhdist' "$mhmetafile"` - export mhuse=`anno -list -component 'mhuse' "$mhmetafile"` export mhfolder=`anno -list -component 'mhfolder' "$mhmetafile"` export mhmessages=`anno -list -component 'mhmessages' "$mhmetafile"` export mhannotate=`anno -list -component 'mhannotate' "$mhmetafile"`