Merge pull request #665 from PJB3005/20-02-18-pwsh

Detect Powershell version.
This commit is contained in:
darealshinji
2021-05-23 18:58:11 +02:00
committed by GitHub

View File

@@ -1932,6 +1932,9 @@ detectshell () {
fish)
shell_version_data=$( fish --version | awk '{print $3}' )
;;
pwsh)
shell_version_data=$( pwsh -c '$PSVersionTable.PSVersion.ToString()' )
;;
esac
if [[ -n $shell_version_data ]];then