File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 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() {
599599function chroot_correct_qemu() {
600600 local host_arch=" $1 "
601601 local target_arch=" $2 "
602+ local chroot_script=" $3 "
603+ local custom_pi_os_path=" $4 "
602604
603605 # Validate inputs
604606 if [[ -z " $host_arch " ]] || [[ -z " $target_arch " ]]; then
Original file line number Diff line number Diff line change 77
88export LC_ALL=C
99
10- source ${CUSTOM_PI_OS_PATH} /common.sh
10+ source " ${CUSTOM_PI_OS_PATH} " /common.sh
1111
1212echo_green -e " \nBUILD STARTED @ $( date) !\n"
1313
@@ -51,7 +51,6 @@ function execute_chroot_script() {
5151 chmod 755 chroot_script
5252 cp " ${CUSTOM_PI_OS_PATH} " /common.sh common.sh
5353 chmod 755 common.sh
54-
5554 chroot_correct_qemu " $( uname -m) " " $BASE_ARCH " " $2 " " ${CUSTOM_PI_OS_PATH} "
5655
5756 # Handle exported items
@@ -100,7 +99,7 @@ install_cleanup_trap
10099install_fail_on_error_trap
101100unmount_image $BASE_MOUNT_PATH force || true
102101
103- pushd $ BASE_WORKSPACE
102+ pushd " ${ BASE_WORKSPACE} "
104103 if [ -e * .img ]; then
105104 rm * .img
106105 fi
@@ -179,6 +178,8 @@ pushd $BASE_WORKSPACE
179178 echo " No remote and submodules config detected"
180179 fi
181180 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
182183 export -f execute_chroot_script
183184 bash -x " ${CHROOT_SCRIPT} "
184185
You can’t perform that action at this time.
0 commit comments