diff --git a/scripts/local_facts.fact b/scripts/local_facts.fact index 168aaf84a..16bf0104a 100755 --- a/scripts/local_facts.fact +++ b/scripts/local_facts.fact @@ -95,13 +95,13 @@ tmp=$(git rev-parse --verify HEAD) && #tmp=$(cat /proc/device-tree/mfg-data/MN) && # XO_MODEL=$tmp -tmp=$(grep -ai raspberry /proc/device-tree/model) && +tmp=$(grep -ai raspberry /proc/device-tree/model | tr -d '\0') && RPI_MODEL=$tmp # /proc/device-tree/model e.g. 'Parallels ARM Virtual Machine' identical to... # /sys/firmware/devicetree/base/model (also true on RPi hardware!) -tmp=$(cat /proc/device-tree/model) && +tmp=$(tr -d '\0' < /proc/device-tree/model) && DEVICETREE_MODEL=$tmp tmp=$(ansible --version) &&