Skip to content

Commit

Permalink
remove comma in forbidden_files array (#103)
Browse files Browse the repository at this point in the history
commas are not how you separate elements in an array in bash
  • Loading branch information
jazzsequence committed Jul 31, 2024
1 parent 9770022 commit bc34dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devops/scripts/commit-type.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function identify_commit_type() {
# Verifies that the given commit does not contain forbidden files.
function only_allowed_files() {
local commit=$1
local forbidden_files=("composer.lock",".github/workflows/ci.yml")
local forbidden_files=("composer.lock" ".github/workflows/ci.yml")
local has_forbidden_files=0

affected_paths=$(git show "${commit}" --pretty=oneline --name-only | tail -n +2)
Expand Down

0 comments on commit bc34dcb

Please sign in to comment.