Skip to content

Commit

Permalink
Prevent installing programs from JSON multiple times (See #2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Aug 27, 2018
1 parent eb7b7cb commit 936cf9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libexec/scoop-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
reset_aliases

function is_installed($app, $global) {
if($app.EndsWith('.json')) {
$app = [System.IO.Path]::GetFileNameWithoutExtension($app)
}
if(installed $app $global) {
function gf($g) { if($g) { ' --global' } }

Expand Down

0 comments on commit 936cf9c

Please sign in to comment.