From 5843536d8ebcf794448ca97e0e8b2c42b6796e53 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 8 Oct 2022 15:46:04 -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 1be981f..68ba229 100755 --- a/pibackup.sh +++ b/pibackup.sh @@ -33,7 +33,7 @@ if [ "$1" != "update" ]; then echo "PiShrink complete" #sleep 5m - allfiles=`ls -1 ${BackupDir}` + allfiles=`ls -1 ${BackupDir}/*.img.gz` files=(`ls -1 ${BackupDir}/*.img.gz | tail -3`) for i in $allfiles; do keep=0; for a in ${files[@]}; do