Skip to content

Update Secure Token Users.sh#2

Open
scifiman wants to merge 2 commits intobp88:masterfrom
scifiman:patch-1
Open

Update Secure Token Users.sh#2
scifiman wants to merge 2 commits intobp88:masterfrom
scifiman:patch-1

Conversation

@scifiman
Copy link
Copy Markdown

Code as it was did not work for me. I went through and cleaned up a few areas. I removed the brackets ({}) from the for loop as that was broken. I also updated some variables with double-quotes (") to prevent globbing/splitting. I also added a check for greater than 1 entry in each array to prevent a stray comma.

scifiman added 2 commits June 20, 2025 09:58
Code as it was did not work for me.  I went through and cleaned up a few areas.  I removed the brackets ({}) from the for loop as that was broken.  I also updated some variables with double-quotes (") to prevent globbing/splitting.  I also added a check for greater than 1 entry in each array to prevent a stray comma.
Some "crypto users" are not actually users but service tokens, such as the bootstraptoken.  If it doesn't have a user name, don't check its admin status and potentially add a "blank" username to the user arrays.
@scifiman
Copy link
Copy Markdown
Author

I added another if statement to filter out CryptoUsers that aren't actually users.

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.

1 participant