cygwin has issues
This commit is contained in:
parent
cc850ee668
commit
9c8a39fe31
2 changed files with 6 additions and 2 deletions
|
@ -16,4 +16,4 @@ abbiefetch will attempt to gather as much information as possible on systems tha
|
|||
| `freebsd` | FreeBSD | | 1.1.0 | Full | |
|
||||
| `haiku` | Haiku | | 1.1.0 | Limited | |
|
||||
| `windows` | Microsoft Windows | | 1.2.0 | Full | Relies on wmic.exe and systeminfo.exe |
|
||||
| `windows/cygwin` | Microsoft Windows | Cygwin | 1.2.0 | Full | Relies on wmic.exe and systeminfo.exe |
|
||||
| `windows/cygwin` | Microsoft Windows | Cygwin | 1.2.0 | Partial | Relies on wmic.exe and systeminfo.exe, issues with machine detection |
|
||||
|
|
|
@ -72,5 +72,9 @@ if [ "$system_type" = "windows" ] && [ -z "$machine"] && [ "$hassed" -eq 1 ]; th
|
|||
if [ "$hasawk" -eq 1 ]; then
|
||||
distro="$(systeminfo.exe 2>/dev/null | grep -v "BIOS" | grep "OS Version" | awk -F ":" '{print $2}' | tr -s " ")"
|
||||
fi
|
||||
machine="$(wmic.exe computersystem get Manufacturer | sed -n 2p | head -n 1 | tr -s " ")$(wmic.exe computersystem get Model | sed -n 2p | head -n 1)"
|
||||
if [ "$subtype" = "cygwin" ]; then
|
||||
machine=0
|
||||
else
|
||||
machine="$(wmic.exe computersystem get Manufacturer | sed -n 2p | head -n 1 | tr -s " ")$(wmic.exe computersystem get Model | sed -n 2p | head -n 1)"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue