Files
yarn/src/util
Martin 61f64ff3b4 Fix: fakeroot detection is broken (inversed) (#4431)
**Summary**

Fixes #4430.

`fakeroot` detection was added in #3924 (7a053e2ca0); it actually tests the exact opposite though. 

**Test plan**

For testing this I added the line
```JavaScript
console.log("isFakeRoot", isFakeRoot());
```

I then tried the lines
```
./yarn global add
sudo ./yarn global add
fakeroot ./yarn global add
```

I also tried if `ROOT_USER` is now correct in [user-home-dir.js](0ef3bf1f03/src/util/user-home-dir.js) for these 3 commands. 
```JavaScript
console.log("ROOT_USER", ROOT_USER);
```

Will also follow up with unit tests.
2017-09-13 16:20:43 +01:00
..
2017-06-22 18:17:45 +01:00
2017-08-17 14:17:34 +01:00