Skip adjusting PATH if in noninteractive mode.
This commit is contained in:
parent
6a126e6bfe
commit
205d7e84f5
@ -82,6 +82,8 @@ edo cabal new-update
|
|||||||
printf "\\033[0;35m%s\\033[0m\\n" ""
|
printf "\\033[0;35m%s\\033[0m\\n" ""
|
||||||
printf "\\033[0;35m%s\\033[0m\\n" "Installation done!"
|
printf "\\033[0;35m%s\\033[0m\\n" "Installation done!"
|
||||||
printf "\\033[0;35m%s\\033[0m\\n" ""
|
printf "\\033[0;35m%s\\033[0m\\n" ""
|
||||||
|
|
||||||
|
if [ -z "${BOOTSTRAP_HASKELL_NONINTERACTIVE}" ] ; then
|
||||||
echo "In order to run ghc and cabal, you need to adjust your PATH variable."
|
echo "In order to run ghc and cabal, you need to adjust your PATH variable."
|
||||||
echo "You may want to source '$GHCUP_INSTALL_BASE_PREFIX/.ghcup/env' in your shell"
|
echo "You may want to source '$GHCUP_INSTALL_BASE_PREFIX/.ghcup/env' in your shell"
|
||||||
echo "configuration to do so (e.g. ~/.bashrc)."
|
echo "configuration to do so (e.g. ~/.bashrc)."
|
||||||
@ -121,7 +123,7 @@ elif [ -e "$HOME/.bash_profile" ] ; then
|
|||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
|
|
||||||
# vim: tabstop=4 shiftwidth=4 expandtab
|
# vim: tabstop=4 shiftwidth=4 expandtab
|
||||||
|
Loading…
Reference in New Issue
Block a user