Skip to content

Commit eadba01

Browse files
stkbr15ch13
authored andcommitted
Fix: scoop cache command not using $SCOOP_CACHE (#1990)
1 parent e8be51b commit eadba01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libexec/scoop-cache.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function cacheinfo($file) {
2323
}
2424

2525
function show($app) {
26-
$files = @(gci "$scoopdir\cache" | ? { $_.name -match "^$app" })
26+
$files = @(gci "$cachedir" | ? { $_.name -match "^$app" })
2727
$total_length = ($files | measure length -sum).sum -as [double]
2828

2929
$f_app = @{ expression={"$($_.app) ($($_.version))" }}
@@ -39,7 +39,7 @@ function show($app) {
3939
switch($cmd) {
4040
'rm' {
4141
if(!$app) { 'ERROR: <app> missing'; my_usage; exit 1 }
42-
rm "$scoopdir\cache\$app#*"
42+
rm "$cachedir\$app#*"
4343
}
4444
'show' {
4545
show $app

0 commit comments

Comments
 (0)