summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2022-06-03 03:22:03 +0900
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2022-06-03 18:55:36 +0000
commit12fdf93ba40487bcbfc051ca651e4e9ee7c0d689 (patch)
treeecbdb977da09f2f1e2214777d1971809c54fa401 /data
parent77937f9398a384a9ab6bcccd8352155445f5ea4f (diff)
downloadgstreamer-12fdf93ba40487bcbfc051ca651e4e9ee7c0d689.tar.gz
gst-env: Add support for PowerShell 7
The executable binary name of "PowerShell 7" is "pwsh.exe" which is different from system default installed "Windows PowerShell (version 5.x or older)" Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2545>
Diffstat (limited to 'data')
-rw-r--r--data/misc/cmd_or_ps.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/data/misc/cmd_or_ps.ps1 b/data/misc/cmd_or_ps.ps1
index b134006517..4f05967890 100644
--- a/data/misc/cmd_or_ps.ps1
+++ b/data/misc/cmd_or_ps.ps1
@@ -2,7 +2,7 @@ $i=1
$ppid=(gwmi win32_process -Filter "processid='$pid'").parentprocessid
$pname=(Get-Process -id $ppid).Name
While($true) {
- if($pname -eq "cmd" -Or $pname -eq "powershell") {
+ if($pname -eq "cmd" -Or $pname -eq "powershell" -Or $pname -eq "pwsh") {
Write-Host ("{0}.exe" -f $pname)
Break
}