Skip to content

Commit

Permalink
Add " && " if it's not the last one.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewNaylor committed Oct 25, 2020
1 parent 7dd905b commit a42609c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libguinget/PackageTools.vb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ Public Class PackageTools
For i As Integer = 0 To PackageIDs.Count - 1
' Begin adding packages to the list.
BulkInstallCommandList = BulkInstallCommandList & "winget install --id " & PackageIDs(i) & " -v " & PackageVersions(i) & InteractiveFlag & " -e"
'
' Now see if we should add " && ".
If i < PackageIDs.Count - 1 Then
BulkInstallCommandList = BulkInstallCommandList & " && "
End If
Next

MessageBox.Show(BulkInstallCommandList.ToString)
Expand Down

0 comments on commit a42609c

Please sign in to comment.