Skip to content

Commit

Permalink
My bad !
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemric committed Nov 23, 2023
1 parent 38d3bb7 commit 5f31f8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ then
for try in {1..2} #let's try 2 times downloading with correct checksum
do
echo "Downloading $(jq -n "$fileinfo" | jq --raw-output .location) to $filename"
# curl -C - --no-progress-meter --parallel \
# -o $filename $(jq -n "$fileinfo" | jq --raw-output .location) \
# -o $filename.sig $(jq -n "$fileinfo" | jq --raw-output .signature) #Downloading fileinfo.location and .signature
curl -C - --no-progress-meter --parallel \
-o $filename $(jq -n "$fileinfo" | jq --raw-output .location) \
-o $filename.sig $(jq -n "$fileinfo" | jq --raw-output .signature) #Downloading fileinfo.location and .signature
if echo "$(jq -n "$fileinfo" | jq --raw-output .sha256) $filename" | sha256sum --check && gpg --verify $filename.sig
then
break
Expand All @@ -83,7 +83,7 @@ then
fi
done
done
# cat <<< $(jq --arg release $FCOSrelease '.'$stream'.'$arch'.'$artifact'.'$format' = $release' $versions) > $versions
cat <<< $(jq --arg release $FCOSrelease '.'$stream'.'$arch'.'$artifact'.'$format' = $release' $versions) > $versions
else
echo "Up to date, nothing to do"
fi

0 comments on commit 5f31f8e

Please sign in to comment.