diff options
author | ramon <ramongomez@us.es> | 2015-11-17 13:05:29 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2015-11-17 13:05:29 +0000 |
commit | c7dcb94136929cfd1d4ffd4bb384f28397b895c0 (patch) | |
tree | e7285b2a8b70f843e55580650e461a10af9d8187 /client/engine/Inventory.lib | |
parent | e9c3156fd353068ef802b56430704a31ad1ac21a (diff) |
Corregir pequeña errata al detectar sistemas BSD.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4737 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Inventory.lib')
-rwxr-xr-x | client/engine/Inventory.lib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Inventory.lib b/client/engine/Inventory.lib index b2f6063f..90041ce8 100755 --- a/client/engine/Inventory.lib +++ b/client/engine/Inventory.lib @@ -210,7 +210,7 @@ if [ -z "$VERSION" ]; then TYPE="BSD" FILE="$MNTDIR/boot/kernel/kernel" if [ -r $FILE ]; then - VERSION="$(strings $FILE|awk '/@.*RELEASE/ {gsub(/@\(#\),""); print $1,$2}')" + VERSION="$(strings $FILE|awk '/@.*RELEASE/ {sub(/@\(#\)/,""); print $1,$2}')" [ -n "$(file -b $FILE | grep 'x86-64')" ] && IS64BIT="$MSG_64BIT" fi fi |