From 2ac9696aa9647a68117a71beefb1d7d6ad630b0a Mon Sep 17 00:00:00 2001 From: hippoz Date: Sat, 16 Jan 2021 16:49:12 +0200 Subject: [PATCH] pass install root as parameter to package scripts --- aps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aps.sh b/aps.sh index 25932f5..8e61e56 100755 --- a/aps.sh +++ b/aps.sh @@ -70,14 +70,14 @@ add_package_to_database() { cp -pv "${AL_TEMP_LOCATION}/${AL_PKG_NAME}-payloadfiles" "${AL_INSTALLED_PKG_DATABASE}/${AL_PKG_NAME}/payloadfiles" fi else - echo "[*] Target ${AL_PKG_NAME} does not have a package script and will not be added to the installed package database" + echo "[E] Target ${AL_PKG_NAME} does not have a package script and will not be added to the installed package database" fi } run_package_script() { if [ -x "${AL_PKG_PACKAGE_PATH}/${1}" ]; then echo ":: Running ${1} script for target ${AL_PKG_NAME}..." - . "${AL_PKG_PACKAGE_PATH}/${1}" + . "${AL_PKG_PACKAGE_PATH}/${1}" ${AL_INSTALL_ROOT} fi }