telerik / mobile-cli-lib

Contains common infrastructure for CLIs - mainly AppBuilder, NativeScript, DDB and Proton.
Apache License 2.0
11 stars 10 forks source link

Save all unexistent folders and chown them after creation #969

Closed yyosifov closed 7 years ago

yyosifov commented 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.

Now we track what will be created and after the creation we chown them.

justcodebuilduser commented 7 years ago

:heart:

yyosifov commented 7 years ago

@rosen-vladimirov I hate to write while (true) {. Do you think it's OK here?

justcodebuilduser commented 7 years ago

:heart: