Skip to content

Commit cb62a8e

Browse files
committed
apply suggestion
1 parent 863d168 commit cb62a8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devops/scripts/create-sycl-user.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ USER_ID=1001
1313
groupadd -g $USER_ID $USER_NAME && useradd $USER_NAME -u $USER_ID -g $USER_ID -m -s /bin/bash
1414
# Add user to video/irc groups so that it can access GPU
1515
usermod -aG video $USER_NAME
16-
# Not all OS have irc group
17-
if grep -qi 'ubuntu' /etc/os-release; then
16+
# check if the irc group exists
17+
if grep -q '^irc:' /etc/group; then
1818
usermod -aG irc $USER_NAME
1919
fi
2020

0 commit comments

Comments
 (0)