State script version

I’m building images using yocto. The mender artifact includes a state script named ArtifactReboot_Enter_50.
When updating, it seems the old version is used. ie the one already on the device.

How can I make sure only the new script is being executed?

It is supposed to do that already. Does it execute if you don’t include a new script at all?

It seems I have difficulties updating the script in this image. Sorry for the fuss…

ANd now discovered a (stupid) bug in the script…