surrealdb / install.surrealdb.com

The script for installing SurrealDB on unix operating systems
https://install.surrealdb.com
Apache License 2.0
9 stars 6 forks source link

wget-based installation will fail. #1

Open IngwiePhoenix opened 1 year ago

IngwiePhoenix commented 1 year ago

I had a look at index.sh to see how the latest version is installed and how I could automate the installation into /usr/local/bin. Whilst doing so, I noticed that the wget-variant would fail, as the downloaded index.html file is never read; wget --quiet does not print to stdout :)

Whilst on that note, aria2c - albeit nieche - might be a nice oalternative.

For determining the version:

aria2c -q --stderr=true $URL || fail
_ver=(cat index.html)
rm index.html

For downloading the bundle:

aria2c -q --stderr=true -o $filename $url

Hope it helps! =)