File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ while [[ $# -gt 0 ]]; do
6666done
6767
6868# Check all required utilities are available
69- require wget
69+ require curl
7070require tar
7171require uname
7272
106106
107107# Check desired version. Default to latest if no desired version was requested
108108if [[ $VERSION = " " ]]; then
109- VERSION=$( wget -qO - https://github.com/fermyon/spin/releases | grep ' href="/fermyon/spin/releases/tag/v[0-9]*.[0-9]*.[0-9]*\"' | sed -E ' s/.*\/fermyon\/spin\/releases\/tag\/(v[0-9\.]+)".*/\1/g' | head -1)
109+ VERSION=$( curl -so - https://github.com/fermyon/spin/releases | grep ' href="/fermyon/spin/releases/tag/v[0-9]*.[0-9]*.[0-9]*\"' | sed -E ' s/.*\/fermyon\/spin\/releases\/tag\/(v[0-9\.]+)".*/\1/g' | head -1)
110110fi
111111
112112# Constructing download FILE and URL
@@ -115,7 +115,7 @@ URL="https://github.com/fermyon/spin/releases/download/${VERSION}/${FILE}"
115115
116116# Download file, exit if not found - e.g. version does not exist
117117fancy_print 0 " Step 1: Downloading: ${URL} "
118- wget -q $URL || (fancy_print 1 " The requested file does not exist: ${FILE} " ; exit 1)
118+ curl -sOL --fail $URL || (fancy_print 1 " The requested file does not exist: ${FILE} " ; exit 1)
119119fancy_print 0 " Done...\n"
120120
121121# Decompress the file
You can’t perform that action at this time.
0 commit comments