ArchiveTeam / grab-site

The archivist's web crawler: WARC output, dashboard for all crawls, dynamic ignore patterns
Other
1.31k stars 129 forks source link

Fix --which-wpull-command not working correctly with certain paths #235

Open rebane2001 opened 5 months ago

rebane2001 commented 5 months ago

Previously, the --which-wpull-command flag would replace all occurrences of /grab-site with /wpull, eg /home/grab-site/gs-venv/bin/grab-site became /home/wpull/gs-venv/bin/wpull.

This PR fixes that behaviour by using regex instead.