Page MenuHomeSoftware Heritage

check_docker_url.ps1.erb
No OneTemporary

check_docker_url.ps1.erb

$dockerLocation = Join-Path $env:TEMP "docker.zip"
if ((test-path $dockerLocation))
{
$localModified = (Get-Item $dockerLocation).LastWriteTime
$webRequest = [System.Net.HttpWebRequest]::Create("<%= @docker_download_url %>");
$webRequest.Method = "HEAD";
$webResponse = $webRequest.GetResponse()
$remoteLastModified = ($webResponse.LastModified) -as [DateTime]
$webResponse.Close()
if ($remoteLastModified -gt $localModified)
{
exit 1
}
else
{
exit 0
}
}
exit 1

File Metadata

Mime Type
text/plain
Expires
Sat, Jun 21, 7:47 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3371238

Event Timeline