This repository was archived by the owner on Aug 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1212RootModule = ' PSGitLab.psm1'
1313
1414# Version number of this module.
15- ModuleVersion = ' 2.5.12 '
15+ ModuleVersion = ' 2.6.0 '
1616
1717# ID used to uniquely identify this module
1818GUID = ' f844db87-fda8-403b-a7da-bdc00a3f5a58'
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if ( ( $null -ne $env:PSGitLabDomain) -and ( $null -ne $env:PSGitLabToken ) -and
2020
2121if ( $IsWindows -or ( [version ]$PSVersionTable.PSVersion -lt [version ]" 5.99.0" ) ) {
2222 $ConfigFile = " {0}\PSGitLab\PSGitLabConfiguration.xml" -f $env: appdata
23- } elseif ( $IsLinux ) {
23+ } elseif ( $IsLinux -or $IsMacOS ) {
2424 $ConfigFile = " {0}/.psgitlab/PSGitLabConfiguration.xml" -f $HOME
2525} else {
2626 Write-Error " Unknown Platform"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if ($GitLabConfig.APIVersion) { $Version = "v$($GitLabConfig.APIVersion)" }
2727$Domain = $GitLabConfig.Domain
2828if ( $IsWindows -or ( [version ]$PSVersionTable.PSVersion -lt [version ]" 5.99.0" ) ) {
2929 $Token = DecryptString - Token $GitLabConfig.Token
30- } elseif ( $IsLinux ) {
30+ } elseif ( $IsLinux -or $IsMacOS ) {
3131 $Token = $GitLabConfig.Token
3232}
3333$Headers = @ {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ if ( $IsWindows -or ( [version]$PSVersionTable.PSVersion -lt [version]"5.99.0" )
3131
3232 $ConfigFile = " $env: appdata \PSGitLab\PSGitLabConfiguration.xml"
3333
34- } elseif ( $IsLinux ) {
34+ } elseif ( $IsLinux -or $IsMacOS ) {
3535
3636 Write-Warning " Warning: Your GitLab token will be stored in plain-text on non-Windows platforms."
3737
Original file line number Diff line number Diff line change 1212 if ( $isWindows -or ( [version ]$PSVersionTable.PSVersion -lt [version ]" 5.99.0" ) ) {
1313
1414 $Token = DecryptString - Token $GitLabConfig.Token
15- } elseif ( $isLinux ) {
15+ } elseif ( $isLinux -or $IsMacOS ) {
1616 $Token = $GitLabConfig.Token
1717 }
1818
You can’t perform that action at this time.
0 commit comments