mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-01-09 14:28:04 -05:00
Merge pull request #665 from PJB3005/20-02-18-pwsh
Detect Powershell version.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user