Skip to content

Commit 7af8f22

Browse files
authored
Merge pull request #148 from dataplat/feature/dotnet-catch
Wrapper around dotnet call to filter output
2 parents 07b02d1 + 2e2bc4a commit 7af8f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbops.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Set-PSFConfig -FullName dbops.security.usecustomencryptionkey -Value ($PSVersion
192192
Set-PSFConfig -FullName dbops.rdbms.type -Value 'SqlServer' -Validation connectionType -Initialize -Description "Assumes a certain RDBMS as a default one for each command. SQLServer by default"
193193
Set-PSFConfig -FullName dbops.package.slim -Value $false -Validation bool -Initialize -Description "Decides whether to make the packages 'slim' and omit module files when creating the package. Default: `$false"
194194
Set-PSFConfig -FullName dbops.config.variabletoken -Value "\#\{(token)\}" -Validation tokenRegex -Initialize -Description "Variable replacement token. Regex string that will be replaced with values from -Variables parameters. Default: \#\{(token)\}"
195-
$dotNet = try { dotnet --version } catch { $null }
195+
$dotNet = try { & { dotnet --version } } catch { $null }
196196
Set-PSFConfig -FullName dbops.runtime.dotnetversion -Value ($dotNet -as [version]) -Description "Current dotnet runtime." -Hidden
197197
Set-PSFConfig -FullName dbops.ErrorActionPreference -Value Stop -Initialize -Description "Module ErrorAction default value" -Validation errorAction
198198

0 commit comments

Comments
 (0)