File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,14 @@ GITHUB_AUTH_TOKEN=<Your_GitHub_Auth_Token_Here>
94
94
95
95
# You'd probably prefer to pipe in a list here.
96
96
echo -e " typescript\nVS Code" |
97
- while IFS= read -r line
97
+ while IFS= read -r name
98
98
do
99
99
RESPONSE=$( curl \
100
100
--header " Authorization: bearer $GITHUB_AUTH_TOKEN " \
101
101
--data \
102
102
" { \
103
103
\" query\" : \" query { \
104
- search(query: \\\" $line \\\" , type: REPOSITORY, first: 1) { \
104
+ search(query: \\\" $name \\\" , type: REPOSITORY, first: 1) { \
105
105
edges { node { \
106
106
... on Repository { url } \
107
107
} } } }\" \
@@ -110,7 +110,7 @@ while IFS= read -r line
110
110
111
111
echo $RESPONSE \
112
112
| grep -o ' https://[^"]*' \
113
- | awk -v line =" $line " ' {print "["line "]("$1")"}' \
113
+ | awk -v name =" $name " ' {print "["name "]("$1")"}' \
114
114
>> banned-urls.txt;
115
115
done
116
116
```
You can’t perform that action at this time.
0 commit comments