Codefactor Fixes (#1493)

* codefactor fixes

* anotha one
This commit is contained in:
John Grosh
2024-03-04 19:35:17 -05:00
committed by GitHub
parent a7807b96e2
commit bb17c984a2
5 changed files with 98 additions and 82 deletions

View File

@@ -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