Fix misimplemented arch_executors function
This commit is contained in:
parent
60f09947f2
commit
34422eed79
1 changed files with 17 additions and 16 deletions
33
prepare.sh
33
prepare.sh
|
@ -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"
|
||||||
"x86_64") ;;
|
return
|
||||||
"arm64") ;;
|
fi
|
||||||
"powerpc64") ;;
|
for ARCHITECTURE in ${ANSWER}; do
|
||||||
"mips64") ;;
|
case "${ARCHITECTURE}" in
|
||||||
"")
|
"x86_64") ;;
|
||||||
export "ANSWER=${ARCH}"
|
"arm64") ;;
|
||||||
;;
|
"powerpc64") ;;
|
||||||
*)
|
"mips64") ;;
|
||||||
log_error "Invalid execution architecture \"${ANSWER,,}\", please retry."
|
*)
|
||||||
arch_executors
|
log_error "Invalid execution architecture \"${ARCHITECTURE}\", please retry."
|
||||||
return
|
arch_executors
|
||||||
;;
|
return
|
||||||
esac
|
;;
|
||||||
### MISIMPLEMENTED
|
esac
|
||||||
|
done
|
||||||
echo "ARCH_EXECUTORS=${ANSWER}" >> "${TMPDIR}/androot.env"
|
echo "ARCH_EXECUTORS=${ANSWER}" >> "${TMPDIR}/androot.env"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue