mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 22:12:43 +01:00
Avoid poly_user_note_set twice
f06f810incorrectly introduces a boolean flip, resulting in a senseless poly_user_note_set even though the user comment has been set correctly. (cherry picked from commit09830ab829)
This commit is contained in:
parent
21b1a097d6
commit
d6c9069454
1 changed files with 1 additions and 1 deletions
|
|
@ -578,7 +578,7 @@ EOF
|
||||||
# to extract _just_ the user's note, instead it is prefixed with
|
# to extract _just_ the user's note, instead it is prefixed with
|
||||||
# some plist junk. This was causing the user note to always be set,
|
# some plist junk. This was causing the user note to always be set,
|
||||||
# even if there was no reason for it.
|
# even if there was no reason for it.
|
||||||
if ! poly_user_note_get "$username" | grep -q "Nix build user $coreid"; then
|
if poly_user_note_get "$username" | grep -q "Nix build user $coreid"; then
|
||||||
row " Note" "Nix build user $coreid"
|
row " Note" "Nix build user $coreid"
|
||||||
else
|
else
|
||||||
poly_user_note_set "$username" "Nix build user $coreid"
|
poly_user_note_set "$username" "Nix build user $coreid"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue