logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: c05c16e12cb527cf636f2e4ae10447f06c1805e7
parent cd361e63f77842d9780303d63382eb686843c76b
Author: fosslinux <fosslinux@aussies.space>
Date:   Tue, 13 Apr 2021 22:34:11 +1000

helpers.sh: add 5th argument, directory to cd into

Diffstat:

Msysa/helpers.sh4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sysa/helpers.sh b/sysa/helpers.sh @@ -17,10 +17,12 @@ export PATH=/after/bin # 2) optionally specify build script. Default is name-version.sh # 3) optionally specify name of checksum file. Default is checksums # 4) directory of patches. Default is patches +# 5) directory to cd into. Default is ${pkg} build () { pkg=$1 script_name=${2:-${pkg}.sh} checksum_f=${3:-checksums} + dirname=${5:-${pkg}} cd "${PREFIX}/${pkg}" || (echo "Cannot cd into ${pkg}!"; kill $$) echo "${pkg}: beginning build using script ${script_name}" @@ -44,7 +46,7 @@ build () { build_stage=src_unpack call $build_stage - cd "${pkg}" || (echo "Cannot cd into build/${pkg}!"; kill $$) + cd "${dirname}" || (echo "Cannot cd into build/${dirname}!"; kill $$) echo "${pkg}: preparing source." build_stage=src_prepare