I'm getting errors when trying to use the install script on my Mac OSX. I don't run the script under root so that might be throwing errors. Sometimes when I change the script from ${1} to root that command will work, but then error somewhere else.
For example,
I had to change
chown -R $2:$2 $1;
to
chown -R $(whoami):$(groups $(whoami) | cut -d' ' -f1) $1;
in the workDirCreate() function
I've also got certain commands like
docker exec -it $2 composer global require hirak/prestissimo
changed to
docker exec -it -u root $2 composer global require hirak/prestissimo;
and that will work as well.
Expected behavior
Run ./install script without error
Desktop (please complete the following information):
Additional context
My first error was about illegal group name
https://stackoverflow.com/questions/15980675/chown-illegal-group-name-mac-os-x
Which I changed to chown -R $(whoami):$(groups $(whoami) | cut -d' ' -f1) $1;
because my group is "staff" under my mac account.
It might all be fixed if I just run it under linux, but I felt this was something I should bring to everyone's attention.