From 41f63e2996f01ead47b2cd37c4afe42e73510680 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 1 Oct 2018 09:08:50 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 4577b40..cb36fce 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -215,8 +215,8 @@ EXIT1() { } SCRIPT_MENU() { - LASTRUN=$(stat -c %y ${FOLDER}/lastrun) - LASTRUN=${LASTRUN%% *} + LASTRUND=$(stat -c %y /opt/LinUPx/lastrun | cut -d ' ' -f1) + LASTRUNT=$((stat -c %y /opt/LinUPx/lastrun | cut -d ' ' -f2) | cut -d '.' -f1) while : do clear @@ -226,7 +226,7 @@ SCRIPT_MENU() { echo "Hostname: $(hostname -s)" echo "Domain: $(hostname -d)" echo "" - echo "Last run: ${LASTRUN}" + echo "Last run: ${LASTRUND} ${LASTRUNT}" echo "-------------------------------------------------------------" lsb_release -a echo "-------------------------------------------------------------"