Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't allow empty functions for before/after install
If you invoke fpm with --before-upgrade, but not --before-install, then the resultant before_install function becomes an empty function, which bash/dash do not allow. (Syntax errors) This same problem applies to the after flags. To avoid this, we'll insert a null statement if there's no install script specified. We don't need to do this for the (before|after)_upgrade functions, since the time these templates are used is when --(before|after)-upgrade is specified.
- Loading branch information