File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -599,6 +599,8 @@ function load_module_config() {
599
599
function chroot_correct_qemu() {
600
600
local host_arch=" $1 "
601
601
local target_arch=" $2 "
602
+ local chroot_script=" $3 "
603
+ local custom_pi_os_path=" $4 "
602
604
603
605
# Validate inputs
604
606
if [[ -z " $host_arch " ]] || [[ -z " $target_arch " ]]; then
Original file line number Diff line number Diff line change 7
7
8
8
export LC_ALL=C
9
9
10
- source ${CUSTOM_PI_OS_PATH} /common.sh
10
+ source " ${CUSTOM_PI_OS_PATH} " /common.sh
11
11
12
12
echo_green -e " \nBUILD STARTED @ $( date) !\n"
13
13
@@ -51,7 +51,6 @@ function execute_chroot_script() {
51
51
chmod 755 chroot_script
52
52
cp " ${CUSTOM_PI_OS_PATH} " /common.sh common.sh
53
53
chmod 755 common.sh
54
-
55
54
chroot_correct_qemu " $( uname -m) " " $BASE_ARCH " " $2 " " ${CUSTOM_PI_OS_PATH} "
56
55
57
56
# Handle exported items
@@ -100,7 +99,7 @@ install_cleanup_trap
100
99
install_fail_on_error_trap
101
100
unmount_image $BASE_MOUNT_PATH force || true
102
101
103
- pushd $ BASE_WORKSPACE
102
+ pushd " ${ BASE_WORKSPACE} "
104
103
if [ -e * .img ]; then
105
104
rm * .img
106
105
fi
@@ -179,6 +178,8 @@ pushd $BASE_WORKSPACE
179
178
echo " No remote and submodules config detected"
180
179
fi
181
180
echo $ARMBIAN_CONFIG_TXT_FILE
181
+ # if you need anything from common running in execute_chroot_script, export it here
182
+ export -f chroot_correct_qemu
182
183
export -f execute_chroot_script
183
184
bash -x " ${CHROOT_SCRIPT} "
184
185
You can’t perform that action at this time.
0 commit comments