cirruslabs / macos-image-templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xcode template's rbenv environment is broken

anders-nylander opened this issue · comments

At this point in the script, the gem command executes in the user folder, e.g. /Users/admin/.rbenv/shims/gem. But when these commands are run at this point in the script with the "sudo" prefix, we end up with a bunch of gems with mixed ownership inside the ~/.rbenv folder, which causes issues later down the line.

However, the sudo prefix isn't necessary when changing stuff in ~/.rbenv.