From 481d5c2a5a633a493924fe0ae54729c72af9817d Mon Sep 17 00:00:00 2001 From: wangzq Date: Fri, 3 Jun 2016 12:12:21 +0800 Subject: [PATCH] Convert tab to spaces --- lib/buckets.ps1 | 18 +++++++++--------- libexec/scoop-bucket.ps1 | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/buckets.ps1 b/lib/buckets.ps1 index 86c8b60b..dae64676 100644 --- a/lib/buckets.ps1 +++ b/lib/buckets.ps1 @@ -22,15 +22,15 @@ function apps_in_bucket($dir) { } function buckets([switch]$known) { - if ($known) { - known_bucket_repos | Get-Member | ? { $_.MemberType -eq 'NoteProperty' } | Select -Expand Name - } else { - $buckets = @() - if(test-path $bucketsdir) { - gci $bucketsdir | % { $buckets += $_.name } - } - $buckets - } + if ($known) { + known_bucket_repos | Get-Member | ? { $_.MemberType -eq 'NoteProperty' } | Select -Expand Name + } else { + $buckets = @() + if(test-path $bucketsdir) { + gci $bucketsdir | % { $buckets += $_.name } + } + $buckets + } } function find_manifest($app, $bucket) { diff --git a/libexec/scoop-bucket.ps1 b/libexec/scoop-bucket.ps1 index 06506a31..da1c751c 100644 --- a/libexec/scoop-bucket.ps1 +++ b/libexec/scoop-bucket.ps1 @@ -80,6 +80,6 @@ switch($cmd) { "add" { add_bucket $name $repo } "rm" { rm_bucket $name } "list" { list_buckets } - "list-known" { buckets -known } + "list-known" { buckets -known } default { "scoop bucket: cmd '$cmd' not supported"; my_usage; exit 1 } }