diff options
-rw-r--r-- | helpcontent2/helpers/update_tree.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helpcontent2/helpers/update_tree.pl b/helpcontent2/helpers/update_tree.pl index daa0fe2e49..36fab9ac5d 100644 --- a/helpcontent2/helpers/update_tree.pl +++ b/helpcontent2/helpers/update_tree.pl @@ -285,7 +285,8 @@ sub processtreefiles { else { unlink "$tree_dest/$lng/$tv" ; - mv $treetmpfile , "$tree_dest/$lng/$tv" or &terminate("Cannot write to $tree_dest/$lng/$tv"); + my $ret=mv $treetmpfile , "$tree_dest/$lng/$tv$inpath" or &terminate("Cannot write to $tree_dest/$lng/$tv$inpath - Error $!"); + my $ret=mv "$tree_dest/$lng/$tv$inpath" , "$tree_dest/$lng/$tv" or &terminate("Cannot write to $tree_dest/$lng/$tv - Error $!"); } } else { &terminate("Cannot write to $tvout"); |