Unverified Commit bb6c14cd authored by Brian Wright's avatar Brian Wright Committed by GitHub

fix(updater): correct spelling of `curl` flag (#11072)

parent 249c708e
...@@ -65,7 +65,7 @@ function is_update_available() { ...@@ -65,7 +65,7 @@ function is_update_available() {
local remote_head local remote_head
remote_head=$( remote_head=$(
if (( ${+commands[curl]} )); then if (( ${+commands[curl]} )); then
curl --conect-timeout 2 -fsSL -H 'Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null curl --connect-timeout 2 -fsSL -H 'Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null
elif (( ${+commands[wget]} )); then elif (( ${+commands[wget]} )); then
wget -T 2 -O- --header='Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null wget -T 2 -O- --header='Accept: application/vnd.github.v3.sha' $api_url 2>/dev/null
elif (( ${+commands[fetch]} )); then elif (( ${+commands[fetch]} )); then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment