File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,9 @@ function common::is_hook_run_on_whole_repo {
176
176
local all_files_that_can_be_checked
177
177
178
178
if [ -z " $excluded_files " ]; then
179
- all_files_that_can_be_checked=$( git ls-files | sort | grep -e " $included_files " | tr ' \n' ' ' )
179
+ all_files_that_can_be_checked=$( git ls-files | sort | grep -E " $included_files " | tr ' \n' ' ' )
180
180
else
181
- all_files_that_can_be_checked=$( git ls-files | sort | grep -e " $included_files " | grep -v -e " $excluded_files " | tr ' \n' ' ' )
181
+ all_files_that_can_be_checked=$( git ls-files | sort | grep -E " $included_files " | grep -v -E " $excluded_files " | tr ' \n' ' ' )
182
182
fi
183
183
184
184
if [ " $files_to_check " == " $all_files_that_can_be_checked " ]; then
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ function terraform_docs {
187
187
config_file_no_color=" $config_file $( date +%s) .yml"
188
188
189
189
if [ " $PRE_COMMIT_COLOR " = " never" ] &&
190
- [[ $( grep -e ' ^formatter:' " $config_file " ) == * " pretty" * ]] &&
190
+ [[ $( grep -E ' ^formatter:' " $config_file " ) == * " pretty" * ]] &&
191
191
[[ $( grep ' color: ' " $config_file " ) != * " false" * ]]; then
192
192
193
193
cp " $config_file " " $config_file_no_color "
You can’t perform that action at this time.
0 commit comments