-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restores Windows PowerShell 5.1 compatibility.
Versions 3.0.0 to 3.1.0 (inclusive) of this module contained a bug that prevented it from working correctly on Windows PowerShell 5.1. The call to `ConvertFrom-SecureString` used the parameter `-AsPlainText`, which does not exist before PowerShell 7.0. This commit fixes that by checking to see if `ConvertFrom-SecureString` supports the `-AsPlainText` parameter. If so, it is called with it, and if not, it's called without it. Fixes #7
- Loading branch information
1 parent
7d1b62b
commit e207932
Showing
4 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters