Tab regex isn't cross-platform. Use literal.

This commit is contained in:
Sergio Benitez 2016-12-28 22:47:15 -06:00
parent 7a882fd967
commit accfa17e6d
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ function check_versions_match() {
# Ensures there are not tabs in any file in the directories $@. # Ensures there are not tabs in any file in the directories $@.
function ensure_tab_free() { function ensure_tab_free() {
local matches=$(egrep -I -R '\t' $ROOT_DIR | egrep -v '/target|/.git|LICENSE') local tab=$(printf '\t')
local matches=$(grep -I -R "${tab}" $ROOT_DIR | egrep -v '/target|/.git|LICENSE')
if ! [ -z "${matches}" ]; then if ! [ -z "${matches}" ]; then
echo "Tab characters were found in the following:" echo "Tab characters were found in the following:"
echo "${matches}" echo "${matches}"