Skip to content

Commit

Permalink
Small script style fixes (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Feb 16, 2020
1 parent c79fa56 commit 98ad56a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion linux/build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param (
$td = "$PSScriptRoot/../td"
[string] $td = "$PSScriptRoot/../td"
)

$ErrorActionPreference = 'Stop'
Expand Down
5 changes: 3 additions & 2 deletions linux/install.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
param (
$NuGetDownloadUrl = 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe',
$NuGetPath = "$PSScriptRoot/../tools/nuget.exe"
[string] $NuGetDownloadUrl = 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe',
[string] $NuGetPath = "$PSScriptRoot/../tools/nuget.exe"
)

$ErrorActionPreference = 'Stop'
Expand All @@ -16,3 +16,4 @@ Invoke-WebRequest -OutFile $NuGetPath $NuGetDownloadUrl

Write-Output 'Updating the Git submobules'
git submodule update --init --recursive
if (!$?) { throw 'Cannot update the Git submodules' }
2 changes: 1 addition & 1 deletion macos/build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param (
$td = "$PSScriptRoot/../td"
[string] $td = "$PSScriptRoot/../td"
)

$ErrorActionPreference = 'Stop'
Expand Down
1 change: 1 addition & 0 deletions macos/install.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest

brew install gperf nuget openssl
if (!$?) { throw 'Cannot install dependencies from brew' }
Expand Down
6 changes: 3 additions & 3 deletions windows/build.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
param (
$td = "$PSScriptRoot/../td",
$Platform = 'x64-windows',
[Parameter(Mandatory = $true)] $VcpkgToolchain
[string] $td = "$PSScriptRoot/../td",
[string] $Platform = 'x64-windows',
[Parameter(Mandatory = $true)] [string] $VcpkgToolchain
)

$ErrorActionPreference = 'Stop'
Expand Down

0 comments on commit 98ad56a

Please sign in to comment.