File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ function download_vulkan_installer() {
2222 local filename=$( _os_filename $os )
2323 local url=https://sdk.lunarg.com/sdk/download/$VULKAN_SDK_VERSION /$os /$filename ? Human=true
2424 echo " _download_os_installer $os $filename $url " >&2
25- if [[ -f $filename && $( stat -c %s $filename ) -gt 1048576 ]] ; then
25+ if [[ -f $filename ]] ; then
2626 echo " using cached: $filename " >&2
2727 else
28- curl --fail-with-body -s -L -o $filename $url || { echo " curl failed with error code: $? " >&2 ; curl -s -L --head $url >&2 ; exit 32 ; }
29- test -f $filename
30- test $( stat -c %s $ filename) -gt 1048576
28+ curl --fail-with-body -s -L -o ${ filename} .tmp $url || { echo " curl failed with error code: $? " >&2 ; curl -s -L --head $url >&2 ; exit 32 ; }
29+ test -f ${ filename} .tmp
30+ mv -v ${filename} .tmp ${ filename}
3131 fi
3232 ls -lh $filename >&2
3333}
You can’t perform that action at this time.
0 commit comments