Closed yyosifov closed 7 years ago
If the user didn't have ~/.local/share/.nativescript-cli we create it for them and if the setup is ran with sudo the owner of all these directories would be root.
sudo
Now we track what will be created and after the creation we chown them.
chown
:heart:
@rosen-vladimirov I hate to write while (true) {. Do you think it's OK here?
while (true) {
If the user didn't have ~/.local/share/.nativescript-cli we create it for them and if the setup is ran with
sudo
the owner of all these directories would be root.Now we track what will be created and after the creation we
chown
them.