Use shell comparsion (#1627)
This commit is contained in:
committed by
GitHub
parent
8733899aa0
commit
f140b41bf5
@@ -9,7 +9,7 @@ DOWNLOAD=true
|
|||||||
LOOP=true
|
LOOP=true
|
||||||
|
|
||||||
download() {
|
download() {
|
||||||
if [ $DOWNLOAD == true ]; then
|
if [ $DOWNLOAD = true ]; then
|
||||||
URL=$(curl -s https://api.github.com/repos/jagrosh/MusicBot/releases/latest \
|
URL=$(curl -s https://api.github.com/repos/jagrosh/MusicBot/releases/latest \
|
||||||
| grep -i "browser_download_url.*\.jar" \
|
| grep -i "browser_download_url.*\.jar" \
|
||||||
| sed 's/.*\(http.*\)"/\1/')
|
| sed 's/.*\(http.*\)"/\1/')
|
||||||
|
|||||||
Reference in New Issue
Block a user