When I run alitv.pl test.yml --overwrite repeatedly it works twice and then fails. The reason is that the first time the test.map file does not exist so no need to overwrite at all. The second time a test.map file exists and is backuped to test.map.bak and then overwritten. In all consecutive runs both the test.map and test.map.bak files exist and AliTV refuses to overwrite test.map.bak.
This behavior is not intuitive. For me setting the --overwrite flag explicitly means "please overwrite all existing, conflicting files". Therefore I would not even expect a .bak file to be created. And if it is created I wont expect it to cause consecutive runs to fail. I'd vote for not creating a backup file at all and this problem should be solved.
When I run
alitv.pl test.yml --overwriterepeatedly it works twice and then fails. The reason is that the first time thetest.mapfile does not exist so no need to overwrite at all. The second time atest.mapfile exists and is backuped totest.map.bakand then overwritten. In all consecutive runs both thetest.mapandtest.map.bakfiles exist and AliTV refuses to overwritetest.map.bak.This behavior is not intuitive. For me setting the
--overwriteflag explicitly means "please overwrite all existing, conflicting files". Therefore I would not even expect a.bakfile to be created. And if it is created I wont expect it to cause consecutive runs to fail. I'd vote for not creating a backup file at all and this problem should be solved.