Skip to content

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