diff --git a/README.md b/README.md index 46405a9..dcdf6b8 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ ### Requirements -1. **wget**, **curl** (Is needed for downloading the ffmpeg lib and Chrome) - ```sudo apt install wget curl``` +1. **wget** (Is needed for downloading the ffmpeg lib and Chrome) + ```sudo apt install wget``` 2. **unzip** (Is needed for unzipping the downloaded file) ```sudo apt install unzip``` diff --git a/fix-opera.sh b/fix-opera.sh index 56edb73..d2e29f3 100755 --- a/fix-opera.sh +++ b/fix-opera.sh @@ -20,8 +20,8 @@ readonly GIT_API_ALT=https://api.github.com/repos/Ld-Hagen/fix-opera-linux-ffmpe printf '\nGetting Url ...\n' -readonly OPERA_FFMPEG_URL_MAIN=$(curl -s $GIT_API_MAIN | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) -readonly OPERA_FFMPEG_URL_ALT=$(curl -s $GIT_API_ALT | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) +readonly OPERA_FFMPEG_URL_MAIN=$(wget -qO - $GIT_API_MAIN | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) +readonly OPERA_FFMPEG_URL_ALT=$(wget -qO - $GIT_API_ALT | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) if [ `basename $OPERA_FFMPEG_URL_MAIN` -ge `basename $OPERA_FFMPEG_URL_ALT` ] then @@ -63,6 +63,7 @@ if $FIX_WIDEVINE printf "\nDeleting temprorary files ...\n" rm -rf "$TEMP_FOLDER/chrome" + rm "$TEMP_FOLDER/$CHROME_PKG_NAME" else printf "\nInstalling WidevineCdm skipped\n" fi