8000 Possible fix for #41 by HowardGMac · Pull Request #42 · macadmins/outset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Possible fix for #41 #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Possible fix for #41 #42

merged 1 commit into from
Feb 29, 2024

Conversation

HowardGMac
Copy link
Contributor

I believe this will fix the logic that causes the problem in Issue 41.

The check now looks for both a missing LoginOnceDir and loginOncePrivilegedDir before inserting the LoginOnceDir.

Possible fix for #41
@@ -309,7 +309,7 @@ struct Outset: ParsableCommand {
ensureRoot("add scripts to override list")

for var override in addOverride {
if !override.contains(loginOnceDir) {
if !override.contains(loginOnceDir) && !override.contains(loginOncePrivilegedDir) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that should work - the idea here is you can pass just the script name and with no full path it will make an assumption about it being a login-once.

Might me better to make it less reliant on a specific path (e.g. if another once folder is added in the future then this will need to change again)

maybe check to see if the passed in override has a path component and if not, then assume login-once

@bartreardon bartreardon changed the base branch from main to dev_4.1.2 February 29, 2024 07:43
@bartreardon bartreardon merged commit a1d0aa0 into macadmins:dev_4.1.2 Feb 29, 2024
@HowardGMac HowardGMac deleted the fix41 branch May 14, 2024 15:19
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
0