Skip to content

Arguments for curl are incorrect. #13

@chrisr3

Description

@chrisr3

I needed to edit this script as follows before it would download correctly:

diff --git a/fetch-latest-widevine.sh b/fetch-latest-widevine.sh
index 5d31ffe..99c2c25 100755
--- a/fetch-latest-widevine.sh
+++ b/fetch-latest-widevine.sh
@@ -14,8 +14,11 @@ esac
 
 # Detect wget/curl
 DLTOOL=""
-which wget && DLTOOL="wget -O -"
-which curl && DLTOOL="curl -L"
+if which wget; then
+    DLTOOL="wget -O -"
+elif which curl; then
+    DLTOOL="curl --remote-name -L"
+fi
 [[ -z ${DLTOOL} ]] && echo "No download tool found on this system" 1>&2 && exit 1
 
 # Begin download

I must assume that most people are using wget, and do not have curl installed on their systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions