We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8be51b commit eadba01Copy full SHA for eadba01
libexec/scoop-cache.ps1
@@ -23,7 +23,7 @@ function cacheinfo($file) {
23
}
24
25
function show($app) {
26
- $files = @(gci "$scoopdir\cache" | ? { $_.name -match "^$app" })
+ $files = @(gci "$cachedir" | ? { $_.name -match "^$app" })
27
$total_length = ($files | measure length -sum).sum -as [double]
28
29
$f_app = @{ expression={"$($_.app) ($($_.version))" }}
@@ -39,7 +39,7 @@ function show($app) {
39
switch($cmd) {
40
'rm' {
41
if(!$app) { 'ERROR: <app> missing'; my_usage; exit 1 }
42
- rm "$scoopdir\cache\$app#*"
+ rm "$cachedir\$app#*"
43
44
'show' {
45
show $app
0 commit comments