Skip to main content
Question

A package that contains scripts will only run once

  • January 3, 2018
  • 1 reply
  • 6 views

Forum|alt.badge.img+6

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?

1 reply

Forum|alt.badge.img+13
  • Honored Contributor
  • January 3, 2018

@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