Removed unused timestamp code

This commit is contained in:
Simon Hartcher
2015-04-04 14:58:04 +11:00
parent 735ee17571
commit ed3972ee75
2 changed files with 0 additions and 11 deletions
-2
View File
@@ -29,8 +29,6 @@ cp "$dir\_scoop_extract\scoop-master\*" $dir -r -force
rm "$dir\_scoop_extract" -r -force
rm $zipfile
$null > "$dir\last_updated" # save install timestamp
echo 'creating shim...'
shim "$dir\bin\scoop.ps1" $false
-9
View File
@@ -8,15 +8,6 @@
. "$psscriptroot\..\lib\depends.ps1"
. "$psscriptroot\..\lib\config.ps1"
function timeago($when) {
$diff = [datetime]::now - $last_update
if($diff.totaldays -gt 2) { return "$([int]$diff.totaldays) days ago" }
if($diff.totalhours -gt 2) { return "$([int]$diff.totalhours) hours ago" }
if($diff.totalminutes -gt 2) { return "$([int]$diff.totalminutes) minutes ago" }
return "$([int]$diff.totalseconds) seconds ago"
}
# check if scoop needs updating
$currentdir = fullpath $(versiondir 'scoop' 'current')
$needs_update = $false