The use of tail
at this line in the code,
https://github.com/caltechlibrary/microarchiver/blob/0aab75f72b712fa69e56c7979440a7e58bd26a3b/scripts/upload-to-pmc#L85
is very suspicious. I strongly suspect this should be cat
but it needs more careful analysis.