From d6c9069454c7e816ecd763e5d9b557c9d2c9ea3d Mon Sep 17 00:00:00 2001 From: TIAN Yuanhao Date: Wed, 14 Dec 2022 03:03:12 +0000 Subject: [PATCH] Avoid poly_user_note_set twice f06f810 incorrectly introduces a boolean flip, resulting in a senseless poly_user_note_set even though the user comment has been set correctly. (cherry picked from commit 09830ab829f57c20189afe0ee9e7721c274d98ee) --- scripts/install-multi-user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh index 96c0f302b..5342f0f0a 100644 --- a/scripts/install-multi-user.sh +++ b/scripts/install-multi-user.sh @@ -578,7 +578,7 @@ EOF # 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, # 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" else poly_user_note_set "$username" "Nix build user $coreid"