Fix for future bug

This commit is contained in:
JeremyStar™ 2023-11-08 21:13:49 +01:00
parent 34422eed79
commit 3d7c819321

View file

@ -54,6 +54,9 @@ function arch_executors() {
;; ;;
esac esac
done done
if [[ "${ANSWER}" == *"${ARCH_TARGET}"* ]]; then
export "ANSWER=x86_64 ${ANSWER}"
fi
echo "ARCH_EXECUTORS=${ANSWER}" >> "${TMPDIR}/androot.env" echo "ARCH_EXECUTORS=${ANSWER}" >> "${TMPDIR}/androot.env"
} }
@ -163,9 +166,10 @@ function location() {
# create directory # create directory
indicate_exec "Creating location directory" indicate_exec "Creating location directory"
if ! mkdir -p "${ANSWER}/rootfs"; then if ! mkdir -p "${ANSWER}/rootfs"; then
indicate_fail; indicate_fail
exit 1 exit 1
fi fi
indicate_ok
fi fi
echo "LOCATION=${ANSWER}" >> "${TMPDIR}/androot.env" echo "LOCATION=${ANSWER}" >> "${TMPDIR}/androot.env"
} }