Skip to content

Commit b3714ac

Browse files
committed
Use echo instead of '-p' flag for read, as it failed in zsh
1 parent 9657142 commit b3714ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/venv-cli/venv.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ venv::delete() {
172172
echo
173173
echo "Examples:"
174174
echo "$ venv delete"
175-
echo "Are you sure you want to delete the virtual environment in .venv? [y/N] y"
175+
echo "Are you sure you want to delete the virtual environment in .venv? [y/N]"
176+
echo "y"
176177
echo "$ Virtual environment deleted!"
177178
return "${_success}"
178179
fi
@@ -184,7 +185,8 @@ venv::delete() {
184185

185186
# If -y is not supplied as input argument, prompt the user for confirmation
186187
if [ "$1" != "-y" ]; then
187-
read -r -p "Are you sure you want to delete the virtual environment in .venv? [y/N] " response
188+
echo "Are you sure you want to delete the virtual environment in .venv? [y/N]"
189+
read -r response
188190

189191
local accept_pattern="^([yY][eE][sS]|[yY])$"
190192
if [[ ! "${response}" =~ $accept_pattern ]]; then

0 commit comments

Comments
 (0)