Skip to content

Commit

Permalink
Update per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshsanth committed Aug 25, 2023
1 parent a02d5c9 commit 5358e31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plat/unix/update_tags.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ if [ -f "$TAGS_FILE" ]; then
echo "Removing references to: $UPDATED_SOURCE"
tab=" "
# use ripgrep if available
if which rg; then
cmd="rg --text -ev '^[^$tab]+$tab$UPDATED_SOURCE$tab' '$TAGS_FILE' > '$TAGS_FILE.temp'"
if command -v rg > /dev/null 2>&1; then
GREP_CMD="rg --noconfig"
else
cmd="grep --text -Ev '^[^$tab]+$tab$UPDATED_SOURCE$tab' '$TAGS_FILE' > '$TAGS_FILE.temp'"
GREP_CMD="grep -E"
fi
cmd="${GREP_CMD} --text -v '^[^$tab]+$tab$UPDATED_SOURCE$tab' '$TAGS_FILE' > '$TAGS_FILE.temp'"
echo "$cmd"
eval "$cmd" || true
INDEX_WHOLE_PROJECT=0
Expand Down

0 comments on commit 5358e31

Please sign in to comment.