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
66
66
done
67
67
68
68
# Check all required utilities are available
69
- require wget
69
+ require curl
70
70
require tar
71
71
require uname
72
72
106
106
107
107
# Check desired version. Default to latest if no desired version was requested
108
108
if [[ $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)
110
110
fi
111
111
112
112
# Constructing download FILE and URL
@@ -115,7 +115,7 @@ URL="https://github.com/fermyon/spin/releases/download/${VERSION}/${FILE}"
115
115
116
116
# Download file, exit if not found - e.g. version does not exist
117
117
fancy_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)
119
119
fancy_print 0 " Done...\n"
120
120
121
121
# Decompress the file
You can’t perform that action at this time.
0 commit comments