Skip to content

Commit

Permalink
Fixed asterisk-related undercount
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jan 4, 2024
1 parent 5c8f737 commit c50711a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rights_reporter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
echo -e "OpenShift users for projects accessible to $(oc whoami)"

# Projects available to the current user
PROJECTS=$(oc projects | grep -v "*" | grep -E "^ +.*-.*(.*)$")
PROJECTS=$(oc projects | sed "s/\*/ /g" | grep -E "^ +.*-.*(.*)$")

# Roles to report on, can be overridden with a quoted parameter
ROLES=${1:-"admin edit view"}
Expand Down

0 comments on commit c50711a

Please sign in to comment.