Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cbe85bb

Browse files
[skip changelog] Fixes installation using wget (#1299)
Fixes an issue where during installation using wget an uninitialized variable was read which caused the process to get stuck.
1 parent 2666b6e commit cbe85bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎install.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ getFile() {
122122
if [ "$DOWNLOAD_TOOL" = "curl" ]; then
123123
httpStatusCode=$(curl -s -w '%{http_code}' -L "$url" -o "$filePath")
124124
elif [ "$DOWNLOAD_TOOL" = "wget" ]; then
125-
body=$(wget --server-response --content-on-error -q -O "$filePath" "$url")
125+
tmpFile=$(mktemp)
126+
body=$(wget --server-response --content-on-error -q -O "$filePath" "$url" 2> $tmpFile || true)
126127
httpStatusCode=$(cat $tmpFile | awk '/^ HTTP/{print 2ドル}')
127128
fi
128129
echo "$httpStatusCode"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /