mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: read without -r is generally bad.
The yes/no prompt doesn't need backslash escaped characters.
This commit is contained in:
parent
789eb023b1
commit
00c70a434d
|
|
@ -106,7 +106,7 @@ echo "[38;5;219m▓▒░[0m Would you like to add 4 useful plugins" \
|
|||
"It will be the following snippet:"
|
||||
command cat "$file"
|
||||
echo -n "[38;5;219m▓▒░[0m Enter y/n and press Return: "
|
||||
read input
|
||||
read -r input
|
||||
if [ "$input" = y ] || [ "$input" = Y ]; then
|
||||
command cat "$file" >> "$THE_ZDOTDIR"/.zshrc
|
||||
echo
|
||||
|
|
|
|||
Loading…
Reference in a new issue