Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arguments for curl are incorrect. #13

Open
chrisr3 opened this issue Nov 27, 2022 · 0 comments
Open

Arguments for curl are incorrect. #13

chrisr3 opened this issue Nov 27, 2022 · 0 comments

Comments

@chrisr3
Copy link

chrisr3 commented Nov 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant