mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
CI: Fix facepalm bug in Azure build
This commit is contained in:
parent
6fe671a5e8
commit
c2ae8be3eb
@ -46,7 +46,7 @@ rev()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Usage: download_and_verify url checksum algo file
|
# Usage: download_and_verify url checksum algo file
|
||||||
# Check to see if its already cached, and the checksum matches. If not, download it.
|
# Check to see if a file is already cached, and the checksum matches. If not, download it.
|
||||||
# Tries up to 3 times
|
# Tries up to 3 times
|
||||||
download_and_verify()
|
download_and_verify()
|
||||||
{
|
{
|
||||||
@ -59,7 +59,7 @@ download_and_verify()
|
|||||||
[ -e "$CACHE_DIR/$fileName" ] || curl -L -o "$CACHE_DIR/$fileName" "$url"
|
[ -e "$CACHE_DIR/$fileName" ] || curl -L -o "$CACHE_DIR/$fileName" "$url"
|
||||||
fileChecksum=$("${algo}sum" "$CACHE_DIR/$fileName" | awk '{ print $1 }')
|
fileChecksum=$("${algo}sum" "$CACHE_DIR/$fileName" | awk '{ print $1 }')
|
||||||
[ "$fileChecksum" = "$correctChecksum" ] && return 0
|
[ "$fileChecksum" = "$correctChecksum" ] && return 0
|
||||||
rm
|
rm "$CACHE_DIR/$fileName"
|
||||||
done
|
done
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user