Merge "Allow empty uninstall hooks"

This commit is contained in:
Jenkins 2016-06-29 14:31:55 +00:00 committed by Gerrit Code Review
commit 424a1c0254
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ ${ postinstall_hook }
# uninstall: 0 # uninstall: 0
% if uninstall_hook: % if uninstall_hook:
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
# insert no-op to allow empty or comment-only uninstall hooks
:
${ uninstall_hook } ${ uninstall_hook }
fi fi
% endif % endif