We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a02d5c9 commit 73018cfCopy full SHA for 73018cf
plat/unix/update_tags.sh
@@ -100,11 +100,12 @@ if [ -f "$TAGS_FILE" ]; then
100
echo "Removing references to: $UPDATED_SOURCE"
101
tab=" "
102
# use ripgrep if available
103
- if which rg; then
104
- 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"
105
else
106
- cmd="grep --text -Ev '^[^$tab]+$tab$UPDATED_SOURCE$tab' '$TAGS_FILE' > '$TAGS_FILE.temp'"
+ GREP_CMD="grep -E"
107
fi
108
+ cmd="${GREP_CMD} --text -v '^[^$tab]+$tab$UPDATED_SOURCE$tab' '$TAGS_FILE' > '$TAGS_FILE.temp'"
109
echo "$cmd"
110
eval "$cmd" || true
111
INDEX_WHOLE_PROJECT=0
0 commit comments