Skip to content

Commit

Permalink
buckets.ps1: Fix new_issue_msg (ScoopInstaller#3375)
Browse files Browse the repository at this point in the history
buckets.ps1: Fix new_issue_msg
  • Loading branch information
niheaven authored and r15ch13 committed Apr 26, 2019
1 parent 56d54d1 commit 58eb2e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/buckets.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ function rm_bucket($name) {
function new_issue_msg($app, $bucket, $title, $body) {
$app, $manifest, $bucket, $url = Find-Manifest $app $bucket
$url = known_bucket_repo $bucket
$bucket_path = "$bucketsdir\$bucket"

if($manifest -and ($null -eq $url) -and ($null -eq $bucket)) {
$url = 'https://github.com/scoopinstaller/scoop-main'
} elseif (Test-path $bucket_path) {
if (Test-path $bucket_path) {
Push-Location $bucket_path
$remote = git_config --get remote.origin.url
# Support ssh and http syntax
Expand Down

0 comments on commit 58eb2e9

Please sign in to comment.