commit: 338c85c8b8c6f2d909d02ac198fc15fea1503e9c
parent 981c4857fdebc57d23aeed683c33011bfa8513f9
Author: fosslinux <fosslinux@aussies.space>
Date: Sun, 4 Apr 2021 09:08:17 +1000
Use absolute instead of relative paths in helpers.sh
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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
}