Skip to content

Commit 558d172

Browse files
committed
Change to in url search docs
1 parent 0626fb5 commit 558d172

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

banned.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ GITHUB_AUTH_TOKEN=<Your_GitHub_Auth_Token_Here>
9494

9595
# You'd probably prefer to pipe in a list here.
9696
echo -e "typescript\nVS Code" |
97-
while IFS= read -r line
97+
while IFS= read -r name
9898
do
9999
RESPONSE=$(curl \
100100
--header "Authorization: bearer $GITHUB_AUTH_TOKEN" \
101101
--data \
102102
"{ \
103103
\"query\": \"query { \
104-
search(query: \\\"$line\\\", type: REPOSITORY, first: 1) { \
104+
search(query: \\\"$name\\\", type: REPOSITORY, first: 1) { \
105105
edges { node { \
106106
... on Repository { url } \
107107
} } } }\" \
@@ -110,7 +110,7 @@ while IFS= read -r line
110110

111111
echo $RESPONSE \
112112
| grep -o 'https://[^"]*' \
113-
| awk -v line="$line" '{print "["line"]("$1")"}' \
113+
| awk -v name="$name" '{print "["name"]("$1")"}' \
114114
>> banned-urls.txt;
115115
done
116116
```

0 commit comments

Comments
 (0)