isaacs/npm — Issue #1622: Incorrect check before adding -o option to tar?
Author: mfncooper
Created: 2011-10-28 16:03:32+00:00
State: open

The current check causes -o to be always used for non-Windows systems, when it looks like it is intended to be used only when the user is sudo on non-Windows (which would make sense).

https://github.com/isaacs/npm/blob/master/lib/utils/tar.js#L204

I believe || should be &&.