Removed curl dependency

This commit is contained in:
Maksim Ivanov
2021-09-17 19:07:14 +03:00
committed by Ld-Hagen
parent a275e5b442
commit db1616eaeb
2 changed files with 5 additions and 4 deletions

View File

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

View File

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