From b5be90e394f1e5f1224e2236670d0e1a397fdd4d Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Wed, 28 Nov 2018 15:38:46 +0000 Subject: [PATCH] scripts/install: use pkg_call --- scripts/install | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index fbc9b3fd01..b1797d7478 100755 --- a/scripts/install +++ b/scripts/install @@ -130,9 +130,7 @@ unset -f post_install # install if [ "$TARGET" = target ] ; then - if [ "$(type -t pre_install)" = "function" ]; then - pre_install - fi + pkg_call_optional pre_install fi if [ "$TARGET" = "target" -a -d $PKG_BUILD/.install_pkg ]; then @@ -144,9 +142,7 @@ elif [ "$TARGET" = "init" -a -d $PKG_BUILD/.install_init ]; then fi if [ "$TARGET" = target ] ; then - if [ "$(type -t post_install)" = "function" ]; then - post_install - fi + pkg_call_optional post_install fi touch $STAMP