fix(shell-completion): discard error messages

This commit is contained in:
Eisuke Kawashima
2025-07-14 20:24:26 +09:00
parent 86fff7fb38
commit c2b0f637c2
18 changed files with 36 additions and 34 deletions
+2 -2
View File
@@ -28,12 +28,12 @@ __contains_word () {
__get_all_users () {
local a b
userdbctl user --no-legend -B | { while read -r a b; do printf "%s\n" "$a"; done; }
userdbctl user --no-legend -B 2>/dev/null | { while read -r a b; do printf "%s\n" "$a"; done; }
}
__get_all_groups () {
local a b
userdbctl group --no-legend -B | { while read -r a b; do printf "%s\n" "$a"; done; }
userdbctl group --no-legend -B 2>/dev/null | { while read -r a b; do printf "%s\n" "$a"; done; }
}
_userdbctl () {