Skip to content

Commit

Permalink
Do not rely on IFS from env (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfindlater committed Jul 19, 2021
1 parent 87e4729 commit ff05bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ load_allowed() {
load_combined_patterns() {
local patterns=$(load_patterns)
local combined_patterns=''
for pattern in $patterns; do
while IFS=$'\n' read -r pattern; do
combined_patterns=${combined_patterns}${pattern}"|"
done
done <<< "${patterns}"
combined_patterns=${combined_patterns%?}
echo $combined_patterns
}
Expand Down

0 comments on commit ff05bba

Please sign in to comment.