Skip to content

Fixes permission denied check when result starts with 'Permission denied'#1343

Merged
mattstauffer merged 1 commit intolaravel:masterfrom
matthewjohns0n:master
Jan 13, 2023
Merged

Fixes permission denied check when result starts with 'Permission denied'#1343
mattstauffer merged 1 commit intolaravel:masterfrom
matthewjohns0n:master

Conversation

@matthewjohns0n
Copy link
Copy Markdown
Contributor

When creating a certificate, if the result of the command starts with "Permission denied" it doesn't know that the permission was denied, so it doesn't try to run as root.

The current check will only work if the result contains "Permission denied" but will fail if the result starts with "Permission denied" since that will return 0.

I also wasn't sure which branch to PR this into, but it looks like master is typically where things get PR'd into. Let me know if it needs to be into a different branch and I can change it.

@mattstauffer
Copy link
Copy Markdown
Collaborator

Great, thanks! and yes, master was correct.

@mattstauffer mattstauffer merged commit 3b2b7f6 into laravel:master Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants