From 338c85c8b8c6f2d909d02ac198fc15fea1503e9c Mon Sep 17 00:00:00 2001 From: fosslinux Date: Sun, 4 Apr 2021 09:08:17 +1000 Subject: [PATCH] Use absolute instead of relative paths in helpers.sh --- sysa/helpers.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysa/helpers.sh b/sysa/helpers.sh index 90eb05b..b255f2b 100755 --- a/sysa/helpers.sh +++ b/sysa/helpers.sh @@ -22,7 +22,7 @@ build () { script_name=${2:-${pkg}.sh} checksum_f=${3:-checksums} - cd "$pkg" || (echo "Cannot cd into ${pkg}!"; kill $$) + cd "${PREFIX}/${pkg}" || (echo "Cannot cd into ${pkg}!"; kill $$) echo "${pkg}: beginning build using script ${script_name}" base_dir="${PWD}" patch_dir="${base_dir}/${4:-patches}" @@ -62,13 +62,13 @@ build () { build_stage=src_install call $build_stage - cd ../.. + cd "${PREFIX}/${pkg}" echo "${pkg}: checksumming installed files." test -e "${checksum_f}" && sha256sum -c "${checksum_f}" echo "${pkg}: build successful" - cd .. + cd "${PREFIX}" unset -f src_unpack src_prepare src_configure src_compile src_install }