Skip to content

Commit 1992be1

Browse files
committed
Correção no install do powershai
1 parent cc31c35 commit 1992be1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

SqlLibEmbeddings/start-embedding.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
Prepara para o ambiente para os embeddings do git!
33
#>
44

5-
if(!(Get-Module powershai)){
6-
install-module powershai;
5+
"powershai" | %{
6+
$ModName = $_
7+
8+
if(-not(Get-Module -ListAvailable $ModName)){
9+
write-host "Instaling $ModName module";
10+
$m = Install-Module $ModName -force -PassThru
11+
write-host " Installed: $($m.name) $($m.Version)"
12+
}
13+
714
}
815

916

0 commit comments

Comments
 (0)