Skip to content

Commit

Permalink
Fix call to read for zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Jan 25, 2025
1 parent 2391349 commit f5bc538
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/envconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ if $INTERACTIVE ; then
fi
done
echo "0 - EXIT (return)"
read -r -p "Choose environment [0 to ${l}]: " eid
if [ -n "$ZSH_VERSION" ]; then
read "eid?environment [0 to ${l}]: "
else
read -r -p "Choose environment [0 to ${l}]: " eid
fi
if [[ "${eid}" -eq 0 ]] ; then
return
fi
Expand Down

0 comments on commit f5bc538

Please sign in to comment.