Skip to content

Commit

Permalink
Ignore no-result grep calls in list operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamBindle authored Mar 8, 2022
1 parent 0562ec4 commit aa0329d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bashdatacatalog-list
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function trim_scoped_list() {
trim_list=$(mktemp)

if [ -f .ignore.grep ]; then
grep -v -f .ignore.grep ${working_list} > ${temp_file}
grep -v -f .ignore.grep ${working_list} > ${temp_file} || :
cp ${temp_file} ${working_list}
fi

Expand All @@ -134,7 +134,7 @@ function trim_scoped_list() {
awk -F ' +' -v threshold=${RANGE_END} "$AWK_CMP_GT" ${temp_file} >> ${trim_list}
fi

grep -v -F -f ${trim_list} ${working_list} > ${temp_file}
grep -v -F -f ${trim_list} ${working_list} > ${temp_file} || :
cp ${temp_file} ${working_list}
fi

Expand Down

0 comments on commit aa0329d

Please sign in to comment.