aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTIAN Yuanhao <tianyuanhao3@163.com>2022-12-14 03:03:12 +0000
committerTIAN Yuanhao <tianyuanhao3@163.com>2022-12-14 03:03:12 +0000
commit09830ab829f57c20189afe0ee9e7721c274d98ee (patch)
treea82fd0d0b5d1bb014f6f8fa5435e171de5f79b35 /scripts
parent1dd7779c7cdca7061e80ebc3b7886a2aa97b0d8a (diff)
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-multi-user.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh
index ec82e0560..f149ea0d7 100644
--- a/scripts/install-multi-user.sh
+++ b/scripts/install-multi-user.sh
@@ -575,7 +575,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"