Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
abb2232f
Unverified
Commit
abb2232f
authored
Jul 10, 2024
by
Milos Subotic
Committed by
GitHub
Jul 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix install.sh not working with wget2
parent
33dfa8e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
install.sh
install.sh
+2
-1
No files found.
install.sh
View file @
abb2232f
...
...
@@ -103,7 +103,8 @@ getFile() {
if
[
"
$DOWNLOAD_TOOL
"
=
"curl"
]
;
then
GETFILE_HTTP_STATUS_CODE
=
$(
curl
-s
-w
'%{http_code}'
-L
"
$GETFILE_URL
"
-o
"
$GETFILE_FILE_PATH
"
)
elif
[
"
$DOWNLOAD_TOOL
"
=
"wget"
]
;
then
wget
--server-response
--content-on-error
-q
-O
"
$GETFILE_FILE_PATH
"
"
$GETFILE_URL
"
TMP_FILE
=
$(
mktemp
)
wget
--server-response
--content-on-error
-q
-O
"
$GETFILE_FILE_PATH
"
"
$GETFILE_URL
"
2>
"
$TMP_FILE
"
GETFILE_HTTP_STATUS_CODE
=
$(
awk
'/^ HTTP/{print $2}'
"
$TMP_FILE
"
)
fi
echo
"
$GETFILE_HTTP_STATUS_CODE
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment