A package that contains scripts will only run once

New Contributor II

I have noticed that when you have a package that contains scripts, that the package only works once, then you get an error the next time you try to install. I have tried trashing the receipts, but with no luck. I would like to be able to run the packages more then once for testing before deploying. I seems I have to go back and redo the package every time and change the version. Anyone know of how to get around this?


Valued Contributor

@rdagel have you tried

pkgutil --forget <your-package-id>

without knowing context you may need run it as sudo/admin at the end of one of your scripts