mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-08-29 09:36:37 +00:00
23 lines
437 B
PowerShell
23 lines
437 B
PowerShell
. "$psscriptroot\..\lib\core.ps1"
|
|
|
|
$zerobyte = "$psscriptroot\fixtures\zerobyte.zip"
|
|
$small = "$psscriptroot\fixtures\small.zip"
|
|
|
|
$to = "$psscriptroot\tmp\zerobyte"
|
|
|
|
function test($from) {
|
|
$to = "$psscriptroot\tmp\$(strip_ext (fname $from))"
|
|
|
|
# clean-up from previous runs
|
|
if(test-path $to) {
|
|
write-host "removing $to"
|
|
rm -r -force $to
|
|
}
|
|
|
|
write-host "unzipping $from to $to"
|
|
unzip_old $from $to
|
|
}
|
|
|
|
|
|
test $zerobyte
|
|
test $small |