Skip to content

Support for PowerShell 5.1 on the clone tentacle instance script

Compare
Choose a tag to compare
@BobJWalker BobJWalker released this 09 Mar 14:28
· 9 commits to main since this release
6031fb0

The clone tentacle instance script didn't work when it was run using PowerShell 5.1. There was a check to see if the OS was Windows using the $IsWindows built-in variable, and if it was then set some paths.

However, $IsWindows was added in PowerShell 6. Instead, we flipped the check to see if $IsLinux was set. If it was set to $true then set the paths to Linux. If it was $false or $null (it would be null in PS 5.1 and lower), then assume it was Windows.