Don't unconditionally adjust .bashrc on windows
This commit is contained in:
parent
51da1578f4
commit
48c54bf374
@ -293,16 +293,7 @@ ask_bashrc() {
|
|||||||
|
|
||||||
read -r bashrc_answer </dev/tty
|
read -r bashrc_answer </dev/tty
|
||||||
else
|
else
|
||||||
# On windows .bashrc isn't an important user config, so we adjust it
|
|
||||||
# always. On other platforms, let's be a bit more conservative.
|
|
||||||
case "${plat}" in
|
|
||||||
MSYS*|MINGW*)
|
|
||||||
return 1
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
return 0
|
return 0
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
case $bashrc_answer in
|
case $bashrc_answer in
|
||||||
[Pp]* | "")
|
[Pp]* | "")
|
||||||
|
Loading…
Reference in New Issue
Block a user