Each time I update qubes-core-agent, qubes-bind-dirs service get disabled

I did work around this with update trigger that re-enables the service, but WHY?
The template is debian-13-minimal based.

Apparently line 60 has something to do with it, but I have no clue how to fix.
I tried running preinst, postinst and postrm scripts manually with different arguments but was not able to reproduce the effect, yet, with each package upgrade I see this.

sh: 5: shopt: not found

Looks like a qubes script is trying to set shopt settings when it has been invoked with #!/bin/sh rather than #!/bin/bash. That works ok on Fedora but doesn’t work on Debian.

I get it all the time on every qvm-run, so it is unlikely the issue.