Skip to content

Commit

Permalink
Adjust the grep match pattern to be more specific
Browse files Browse the repository at this point in the history
https://github.com/debarshiray/toolbox/pull/211

Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
  • Loading branch information
eriksjolund authored and debarshiray committed Sep 10, 2019
1 parent 0ed441e commit 28833fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox
Expand Up @@ -1799,7 +1799,7 @@ if [ -f /run/.containerenv ] 2>&3; then
else
echo "$base_toolbox_command: checking if /etc/subgid and /etc/subuid have entries for user $USER" >&3

if ! grep "$USER" /etc/subgid >/dev/null 2>&3 || ! grep "$USER" /etc/subuid >/dev/null 2>&3; then
if ! grep "^$USER:" /etc/subgid >/dev/null 2>&3 || ! grep "^$USER:" /etc/subuid >/dev/null 2>&3; then
echo "$base_toolbox_command: /etc/subgid and /etc/subuid don't have entries for user $USER" >&2
echo "See the podman(1), subgid(5), subuid(5) and usermod(8) manuals for more" >&2
echo "information." >&2
Expand Down

0 comments on commit 28833fc

Please sign in to comment.