File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 104
104
105
105
if ($messageMatched eq 1) {
106
106
if ($dryRunMode eq 0) {
107
- if ($sendToBothSystems eq 0 ) {
108
- $oldCounter ++ ;
107
+ if ($sendToBothSystems eq 1 ) {
108
+ print " sendToBothSystems active, sending copy to old system \n " ;
109
109
copy(" $inputDirectory /$filename " , " $oldEmottakDirectory /$filename " );
110
+ $oldCounter ++;
110
111
}
111
112
move(" $inputDirectory /$filename " , " $newEmottakDirectory /$filename " );
112
113
}
115
116
}
116
117
else {
117
118
if ($dryRunMode eq 0) {
118
- if ($sendToBothSystems eq 0 ) {
119
- $newCounter ++ ;
119
+ if ($sendToBothSystems eq 1 ) {
120
+ print " sendToBothSystems active, sending copy to new system \n " ;
120
121
copy(" $inputDirectory /$filename " , " $newEmottakDirectory /$filename " );
122
+ $newCounter ++;
121
123
}
122
124
move(" $inputDirectory /$filename " , " $oldEmottakDirectory /$filename " );
123
125
}
You can’t perform that action at this time.
0 commit comments