Declare and define local variables separately.
This commit is contained in:
parent
f72a203daa
commit
d2fb70ed9f
@ -37,7 +37,8 @@ Commands:
|
|||||||
}
|
}
|
||||||
|
|
||||||
new_link() {
|
new_link() {
|
||||||
local results=$(curl -s "https://invidious.tube/search?q=lofi+radio" |
|
local results
|
||||||
|
results=$(curl -s "https://invidious.tube/search?q=lofi+radio" |
|
||||||
grep "<p>.*watch" | tr -d "\n" | tr -s " ")
|
grep "<p>.*watch" | tr -d "\n" | tr -s " ")
|
||||||
results=${results//\<p\>\<a href\=\"/\"https:\/\/invidious.tube}
|
results=${results//\<p\>\<a href\=\"/\"https:\/\/invidious.tube}
|
||||||
results=${results//\"\>/\" \"}
|
results=${results//\"\>/\" \"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user