Update linupx-scripts.sh

This commit is contained in:
2019-01-30 16:03:13 -06:00
parent e7f8486f53
commit c8b33ba92c

View File

@@ -334,8 +334,13 @@ FW_INSTALL() {
} }
SCRIPT_MENU() { SCRIPT_MENU() {
LASTRUND=$(stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f1) if [ -f ${FOLDER}/lastrun ]; then
LASTRUNT=$((stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f2) | cut -d '.' -f1) LASTRUND=$(stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f1)
LASTRUNT=$((stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f2) | cut -d '.' -f1)
else
LASTRUND='never'
LASTRUNT=''
fi
while : while :
do do
#clear #clear