Skip to content

Commit 61261a3

Browse files
committed
create-appimage.sh: try curl prior to wget
In CI, the attempt to download mkappimage sometimes fail with some cryptic: ``` ERROR 403: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.. ```
1 parent 7b44ace commit 61261a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data/scripts/Linux-AppImage/create-appimage.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ fi
117117

118118
add_fonts
119119

120-
if command -v wget >/dev/null && wget -V | grep -q https; then
120+
if command -v curl >/dev/null; then
121121
dl() {
122-
wget -O - ${GITHUB_TOKEN+--header "Authorization: token $GITHUB_TOKEN"} "$1"
122+
curl --fail -sSL ${GITHUB_TOKEN+-H "Authorization: token $GITHUB_TOKEN"} "$1"
123123
}
124-
elif command -v curl >/dev/null; then
124+
elif command -v wget >/dev/null && wget -V | grep -q https; then
125125
dl() {
126-
curl --fail -sSL ${GITHUB_TOKEN+-H "Authorization: token $GITHUB_TOKEN"} "$1"
126+
wget -O - ${GITHUB_TOKEN+--header "Authorization: token $GITHUB_TOKEN"} "$1"
127127
}
128128
else
129129
echo "Neither wget nor curl was found - if one needed later, it will " \

0 commit comments

Comments
 (0)