Skip to content

Commit

Permalink
Match the group name exactly
Browse files Browse the repository at this point in the history
  • Loading branch information
relaxdiego committed Sep 27, 2020
1 parent 52556cc commit 38e16fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/coterminal-add
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if [ -z "$proto_user_str" ] || ! sudo ssh-import-id "$proto_user_str" -o /dev/nu
fi

# Create $group_name group if it doesn't yet exist
grep -q "$group_name" /etc/group || sudo groupadd "$group_name"
grep -q -E "^${group_name}:" /etc/group || sudo groupadd "$group_name"

# Create the tmux server if it doesn't already exist and make sure the
# group has read/write permissions to the shared socket.
Expand Down

0 comments on commit 38e16fc

Please sign in to comment.