mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-06 01:31:27 +00:00
Removed unused timestamp code
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user