From 0c7bacfdde603e3d09679de0668f6fe6d1baa563 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 8 Oct 2022 15:45:22 -0500 Subject: [PATCH] Update pibackup.sh --- pibackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pibackup.sh b/pibackup.sh index dd0e70a..1be981f 100755 --- a/pibackup.sh +++ b/pibackup.sh @@ -34,7 +34,7 @@ if [ "$1" != "update" ]; then #sleep 5m allfiles=`ls -1 ${BackupDir}` - files=(`ls -1 ${BackupDir} | tail -3`) + files=(`ls -1 ${BackupDir}/*.img.gz | tail -3`) for i in $allfiles; do keep=0; for a in ${files[@]}; do if [ $i == $a ]; then keep=1;fi;