mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/install: use pkg_call
This commit is contained in:
parent
d0d28ee0a7
commit
b5be90e394
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user