Skip to content
Snippets Groups Projects
Verified Commit 3897434e authored by Julian Ospald's avatar Julian Ospald :tea:
Browse files

Create .bash_profile on windows if it doesn't exist

parent 375dba9d
No related branches found
No related tags found
1 merge request!162Updates
Pipeline #40199 canceled
......@@ -413,6 +413,9 @@ if (!(Test-Path -Path ('{0}' -f $MsysDir))) {
Print-Msg -msg 'Setting default home directory...'
Exec "$Bash" '-lc' "sed -i -e 's/db_home:.*$/db_home: windows/' /etc/nsswitch.conf"
Print-Msg -msg "Creating ~/.bash_profile if it doesn't exist..."
Exec "$Bash" '-lc' "[ -e ~/.bash_profile ] || echo -e '# generated by ghcup\ntest -f ~/.profile && . ~/.profile\ntest -f ~/.bashrc && . ~/.bashrc' > ~/.bash_profile"
} elseif ($msys2Decision -eq 1) {
Print-Msg -color Yellow -msg 'Skipping MSys2 installation.'
while ($true) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment