diff --git a/bin/install.ps1 b/bin/install.ps1 index a78d53412..f114f6304 100644 --- a/bin/install.ps1 +++ b/bin/install.ps1 @@ -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 diff --git a/libexec/scoop-status.ps1 b/libexec/scoop-status.ps1 index 38c90a817..49de57ea8 100644 --- a/libexec/scoop-status.ps1 +++ b/libexec/scoop-status.ps1 @@ -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