pass package path as argument for package scripts

This commit is contained in:
hippoz 2021-01-16 16:54:50 +02:00
parent 2ac9696aa9
commit 76e7125149
No known key found for this signature in database
GPG key ID: 7C52899193467641

2
aps.sh
View file

@ -77,7 +77,7 @@ add_package_to_database() {
run_package_script() { run_package_script() {
if [ -x "${AL_PKG_PACKAGE_PATH}/${1}" ]; then if [ -x "${AL_PKG_PACKAGE_PATH}/${1}" ]; then
echo ":: Running ${1} script for target ${AL_PKG_NAME}..." echo ":: Running ${1} script for target ${AL_PKG_NAME}..."
. "${AL_PKG_PACKAGE_PATH}/${1}" ${AL_INSTALL_ROOT} . "${AL_PKG_PACKAGE_PATH}/${1}" ${AL_INSTALL_ROOT} ${AL_PKG_PACKAGE_PATH}
fi fi
} }