Skip to content

Commit 77344f9

Browse files
ilyam8Copilot
andauthored
Update packaging/docker/run.sh
Co-authored-by: Copilot <[email protected]>
1 parent 31ab36c commit 77344f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/docker/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fi
1717
is_user_in_group() {
1818
local gid="$1"
1919
local user="$2"
20-
getent group "${gid}" | awk -F: '{print $4}' | tr ',' '\n' | grep -qx "${user}"
20+
getent group "${gid}" 2>/dev/null | awk -F: '{print $4}' | tr ',' '\n' | grep -qx "${user}"
2121
}
2222

2323
# Add user to a group by GID, creating the group if necessary

0 commit comments

Comments
 (0)