I feel like it would be a frighteningly common bug. I remember one like this from 2011 [1]. Install/packaging/utility scripts usually do not get as much attention and testing as the application code itself.
[1] https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issue...