This commit is contained in:
abbie 2024-11-12 19:33:32 +00:00
parent 81d34ccdd8
commit dccfe7585a
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C

View file

@ -70,8 +70,7 @@ fi
if [ "$system_type" = "windows" ] && [ -z "$machine"] && [ "$hassed" -eq 1 ]; then
if [ "$hasawk" -eq 1 ]; then
distro="$(systeminfo.exe 2>/dev/null | grep -v "BIOS" | grep "OS Name" | awk -F ":" '{print $2}' | tr -s " ")"
distro="$distro $(systeminfo.exe 2>/dev/null | grep -v "BIOS" | grep "OS Version" | awk -F ":" '{print $2}' | tr -s " ")"
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,Model | sed -n 2p | head -n 1)"
fi