Skip to content

Commit

Permalink
Merge pull request #28 from garethahealy/master
Browse files Browse the repository at this point in the history
changed finding the package line to be grep based instead of 1st line
  • Loading branch information
ckavili authored Mar 16, 2021
2 parents 5c072d2 + 72626b8 commit 91f57d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/conftest.bash
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ get_rego_namespaces() {

# shellcheck disable=SC2038
for file in $(find policy/* -name "*.rego" -type f | xargs); do
read -r line < "${file}"
local line
line="$(grep -P "^package " "${file}")"

local current
current="$(echo "${line/package/}" | xargs)"
Expand Down

0 comments on commit 91f57d9

Please sign in to comment.