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 "-------------------------------------------------------------"