1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

Fix broken patch

This commit is contained in:
Eelco Dolstra 2014-02-26 13:48:23 +01:00
parent 8a02fdc38e
commit bf4a577a58
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ my $channelsList = "$home/.nix-channels";
my $nixDefExpr = "$home/.nix-defexpr";
# Figure out the name of the channels profile.
my $userName = getpwuid($<) or $ENV{"USER"} or die "cannot figure out user name");
my $userName = getpwuid($<) || $ENV{"USER"} or die "cannot figure out user name";
my $profile = "$Nix::Config::stateDir/profiles/per-user/$userName/channels";
mkpath(dirname $profile, 0, 0755);