From: Chris Koeritz Date: Sat, 11 Apr 2015 03:24:54 +0000 (-0400) Subject: another attempt to get the uptime right. X-Git-Tag: 2.140.90~662 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=355e4850845a0d2a734bca2c4fe47e58ac9f9324;p=feisty_meow.git another attempt to get the uptime right. --- diff --git a/scripts/core/inventory.sh b/scripts/core/inventory.sh index 55212f9c..647f943a 100644 --- a/scripts/core/inventory.sh +++ b/scripts/core/inventory.sh @@ -18,10 +18,11 @@ fi # test if this uptime knows the -p flag. uptime -p &>/dev/null +errorfudgetime if [ $? -eq 0 ]; then up="$(uptime -p)" else - up="up $(uptime)" + up="$(uptime | awk '{print $2 " " $1 }')" fi echo