Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124947
check_docker_url.ps1.erb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
531 B
Subscribers
None
check_docker_url.ps1.erb
View Options
$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
Details
Attached
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
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment