1
0
mirror of https://github.com/AG7GN/nexus-utilities.git synced 2025-05-15 14:10:09 -07:00

Fixed trim scripts

This commit is contained in:
Steve Magnuson 2020-02-16 18:51:19 -08:00
parent 5764152937
commit 23f0c7b23f
5 changed files with 9 additions and 9 deletions

View File

@ -1 +1 @@
VERSION="2.1.5"
VERSION="2.1.6"

View File

@ -1,6 +1,6 @@
#!/bin/bash
VERSION="1.16.6"
VERSION="1.16.7"
#
# Script to generate new VNC server and SSH server keys at boot time if a certain
@ -95,7 +95,7 @@ done
DIRS=".fldigi .fldigi-left .fldigi-right"
for D in $DIRS
do
for F in $(ls -R $DIR/$D/*log* 2>/dev/null)
for F in $DIR/$D/*log*
do
[ -e $F ] && [ -f $F ] && rm -f $F
done

View File

@ -1,6 +1,6 @@
#!/bin/bash
VERSION="1.5"
VERSION="1.5.1"
#
# This script removes log files from the $HOME/.fldigi* folder(s) and subfolders.
@ -44,7 +44,7 @@ fi
for D in $DIRS
do
for F in $(ls -R ${D}/*log* 2>/dev/null)
for F in ${D}/*log*
do
[ -e $F ] && [ -f "$F" ] && ! [[ $F =~ logbook ]] || continue
STAMP="$(stat -c %Y $F)"

View File

@ -1,6 +1,6 @@
#!/bin/bash
VERSION="1.5"
VERSION="1.5.1"
#
# This script removes log files from the $HOME/.flmsg* folder(s) and subfolders.
@ -46,7 +46,7 @@ for D in $DIRS
do
for S in $SDIRS
do
for F in $(ls -R ${D}${S} 2>/dev/null)
for F in ${D}${S}
do
[ -e "$F" ] && [ -f "$F" ] || continue
STAMP="$(stat -c %Y $F)"

View File

@ -1,6 +1,6 @@
#!/bin/bash
VERSION="1.5"
VERSION="1.5.1"
# This script removes log files from the $HOME/.flrig* folder(s) and subfolders.
# Files with "last modified" timestamps that are before the specified time
@ -43,7 +43,7 @@ fi
for D in $DIRS
do
for F in $(ls -R ${D}/*txt* 2>/dev/null)
for F in ${D}/*txt*
do
[ -e "$F" ] && [ -f "$F" ] || continue
STAMP="$(stat -c %Y $F)"