1 parent
a7807b96e2
commit
bb17c984a2
5 files changed
+98
-82
No files matched your search
@@ -11,7 +11,7 @@ LOOP=true
|
||||
download() {
|
||||
if [ $DOWNLOAD == true ]; then
|
||||
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/')
|
||||
FILENAME=$(echo $URL | sed 's/.*\/\([^\/]*\)/\1/')
|
||||
if [ -f $FILENAME ]; then
|
||||
|
||||
Reference in new issue
Block a user