Skip to content

Commit

Permalink
Update functions.ps1
Browse files Browse the repository at this point in the history
ensure using actual variable.
  • Loading branch information
wildone authored Sep 28, 2022
1 parent 3dd402d commit 35d2e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Function Get-LocalIP
[string]$IPCONFIG_COMMAND_OUTPUT = "${LOG_PATH}\ipconfig.log"
)

if ( $PLATFORM -eq "Unix" ) {
if ( $PSVersionTable.Platform -eq "Unix" ) {
$IP_ADDRESS="ipconfig getifaddr en0"
} else {

Expand Down

0 comments on commit 35d2e4a

Please sign in to comment.