Fix misimplemented arch_executors function

This commit is contained in:
JeremyStar™ 2023-11-08 20:13:11 +01:00
parent 60f09947f2
commit 34422eed79

View file

@ -37,22 +37,23 @@ function arch_executors() {
log_info " can be specified, if you want." log_info " can be specified, if you want."
log_info "Available execution architectures: x86_64, arm64, powerpc64, mips64" log_info "Available execution architectures: x86_64, arm64, powerpc64, mips64"
log_ask "Execution architecture(s): " log_ask "Execution architecture(s): "
### MISIMPLEMENTED if [ "${ANSWER}" == "" ]; then
case "${ANSWER}" in echo "ARCH_EXECUTORS=${ARCH}" >> "${TMPDIR}/androot.env"
return
fi
for ARCHITECTURE in ${ANSWER}; do
case "${ARCHITECTURE}" in
"x86_64") ;; "x86_64") ;;
"arm64") ;; "arm64") ;;
"powerpc64") ;; "powerpc64") ;;
"mips64") ;; "mips64") ;;
"")
export "ANSWER=${ARCH}"
;;
*) *)
log_error "Invalid execution architecture \"${ANSWER,,}\", please retry." log_error "Invalid execution architecture \"${ARCHITECTURE}\", please retry."
arch_executors arch_executors
return return
;; ;;
esac esac
### MISIMPLEMENTED done
echo "ARCH_EXECUTORS=${ANSWER}" >> "${TMPDIR}/androot.env" echo "ARCH_EXECUTORS=${ANSWER}" >> "${TMPDIR}/androot.env"
} }