554: Fixing read option to work in both ZSH and bash

This commit is contained in:
Geoff Berl
2021-12-03 13:41:57 -05:00
parent d4c38d9d46
commit 7ca8a1aba4
@@ -324,7 +324,7 @@ function ziti_expressConfiguration {
if [[ "${ZITIx_EXPRESS_COMPLETE-}" != "" ]]; then
echo -e "$(RED " --- It looks like you've run an express install in this shell already. ---")"
echo -en "Would you like to clear existing Ziti variables and continue (y/n)? "
read -q -r
read -n 1 -r
echo
if [[ "${REPLY}" =~ [Yy]$ ]]; then
echo -e "$(GREEN "Clearing existing Ziti variables and continuing with express install")"