mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
build: fix sandboxing on darwin
Starting ba87b08f85
getEnv now returns an
std::optional which means these getEnv() != "" conditions no longer happen
if the variables are not defined.
This commit is contained in:
parent
0de33cc81b
commit
66fccd5832
3 changed files with 22 additions and 15 deletions
|
@ -53,7 +53,7 @@ static int _main(int argc, char * * argv)
|
|||
{
|
||||
HashType ht = htSHA256;
|
||||
std::vector<string> args;
|
||||
bool printPath = getEnv("PRINT_PATH") != "";
|
||||
bool printPath = getEnv("PRINT_PATH") == "1";
|
||||
bool fromExpr = false;
|
||||
string attrPath;
|
||||
bool unpack = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue