sergeycherepanov / homebrew-docker-virtualbox

Docker workaround for Ryzentosh (AMD based Hackintosh)
208 stars 20 forks source link

Docker machine env dump is now set to bash #3

Closed duck-nukem closed 4 years ago

duck-nukem commented 4 years ago

👋 Hey there, thanks for this script, it saved me a ton of trouble on my Ryzentosh <3

I've installed fish as a shell, and the script didn't work. After some digging I've noticed that you correctly set the shell for the script to be #!/usr/bin/env bash but because my shell is not that by default (nor a compatible one), what happens is described here

If you are using fish and the SHELL environment variable is correctly set to the path where fish is located, docker-machine env name prints out the values in the format which fish expects

I've added a flag to docker-machine env to force it to dump the environment variables using bash syntax, as we're running this script in bash anyway.