Update linupx-scripts.sh

This commit is contained in:
2018-10-01 09:08:50 -05:00
parent 02331f0e0c
commit 41f63e2996

View File

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