From 2e85bea05563165401da6862665e327d31f31dd3 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Wed, 2 Nov 2022 18:05:39 -0500 Subject: [PATCH] Add files via upload --- flist-reconcile.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flist-reconcile.sh b/flist-reconcile.sh index 8aed100..b0464a6 100644 --- a/flist-reconcile.sh +++ b/flist-reconcile.sh @@ -1,6 +1,4 @@ -#!/bin/bash - -# if we have a "hanging" flist with no corresponding tar, del +#!/bin/bash5 debugg=0 @@ -18,11 +16,13 @@ function failexit () { todel=/tmp/todel-flist.txt >$todel # clearit +# if flist with no tar, del + declare -i fl tr # integer fl=$(ls flist* |wc -l |awk '{print $1}') tr=$(ls *tar* |grep -v flist |wc -l |awk '{print $1}') echo "Flists: $fl -- Tars: $tr" -[[ $fl == $tr ]] && failexit 0 "Flists match tars, all OK" +[[ $fl == $tr ]] && failexit 0 "Flists match tars, evyting OK" # regular array declare -a flists=$(ls flist*) @@ -67,4 +67,4 @@ bkp-home--NORZ--p2300m-ultimate--20200626 missing tar: flist--bkp-home--fryserverantix19--NORZ--20210303.txt matches: flist--bkp-home-p2300m-deepin-sda6.txt 01234567 - + \ No newline at end of file