From 7ba0441568bdb8827a078294e535c5bfa39f10e9 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Mon, 20 Nov 2023 00:09:22 +0100 Subject: [PATCH] DistroInventory fixed Windows systems printing twice --- DistroInventory.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/DistroInventory.sh b/DistroInventory.sh index e50ece8..16930c3 100644 --- a/DistroInventory.sh +++ b/DistroInventory.sh @@ -43,7 +43,6 @@ if $CheckVM; then if [[ $OSYPE == *"win"* ]]; then DISTRO=Windows VERSION=$(qm guest exec $ID "systeminfo" |jq -r '.["out-data"]'| grep "OS Name" |sed -e 's/OS Name://' -e 's/^[ \t]*//' -e 's/Microsoft Windows//' -e 's/^[ \t]*//') - echo "$TYPE,$ID,$NAME,$STATUS,$DISTRO,$VERSION" | tee -a $InventoryFile else OSRELEASE=$(qm guest exec $ID -- cat /etc/os-release |jq -r '.["out-data"]') fi