Don't unconditionally adjust .bashrc on windows

This commit is contained in:
Julian Ospald 2021-09-10 13:34:22 +02:00
parent 51da1578f4
commit 48c54bf374
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -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]* | "")