From 8dba65eec64ea9d51d32f200ff2e5c5783fd1ca4 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov <34414986+Ld-Hagen@users.noreply.github.com> Date: Fri, 30 Dec 2022 21:51:57 +0300 Subject: [PATCH] Fixed bad options order for wget --- scripts/fix-opera.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/fix-opera.sh b/scripts/fix-opera.sh index ad5259c..b7e77c2 100755 --- a/scripts/fix-opera.sh +++ b/scripts/fix-opera.sh @@ -39,8 +39,8 @@ readonly OPERA_WIDEVINE_CONFIG="$OPERA_DIR/resources/widevine_config.json" #Getting download links printf 'Getting download links...\n' ##ffmpeg -#readonly FFMPEG_URL_MAIN=$(wget -qO - $FFMPEG_SRC_MAIN | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) -readonly FFMPEG_URL_ALT=$(wget -qO --inet4-only - $FFMPEG_SRC_ALT | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) +#readonly FFMPEG_URL_MAIN=$(wget -q4O - $FFMPEG_SRC_MAIN | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) +readonly FFMPEG_URL_ALT=$(wget -q4O - $FFMPEG_SRC_ALT | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) [[ $(basename $FFMPEG_URL_ALT) < $(basename $FFMPEG_URL_MAIN) ]] && readonly FFMPEG_URL=$FFMPEG_URL_MAIN || readonly FFMPEG_URL=$FFMPEG_URL_ALT if [[ -z $FFMPEG_URL ]]; then printf 'Failed to get ffmpeg download URL. Exiting...\n' @@ -49,7 +49,7 @@ fi ##Widevine if $FIX_WIDEVINE; then - readonly WIDEVINE_LATEST=`wget -qO --inet4-only - $WIDEVINE_VERSIONS | tail -n1` + readonly WIDEVINE_LATEST=`wget -q4O - $WIDEVINE_VERSIONS | tail -n1` readonly WIDEVINE_URL="https://dl.google.com/widevine-cdm/$WIDEVINE_LATEST-linux-x64.zip" fi @@ -57,14 +57,14 @@ fi printf 'Downloading files...\n' mkdir -p "$TEMP_DIR/opera-fix" ##ffmpeg -wget -q --inet4-only --show-progress $FFMPEG_URL -O "$TEMP_DIR/opera-fix/ffmpeg.zip" +wget -q4 --show-progress $FFMPEG_URL -O "$TEMP_DIR/opera-fix/ffmpeg.zip" if [ $? -ne 0 ]; then printf 'Failed to download ffmpeg. Check your internet connection or try later\n' exit 1 fi ##Widevine if $FIX_WIDEVINE; then - wget -q --inet4-only --show-progress "$WIDEVINE_URL" -O "$TEMP_DIR/opera-fix/widevine.zip" + wget -q4 --show-progress "$WIDEVINE_URL" -O "$TEMP_DIR/opera-fix/widevine.zip" if [ $? -ne 0 ]; then printf 'Failed to download Widevine CDM. Check your internet connection or try later\n' exit 1