mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
Add files via upload
This commit is contained in:
parent
7ca999b2a7
commit
2e85bea055
@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash5
|
||||||
|
|
||||||
# if we have a "hanging" flist with no corresponding tar, del
|
|
||||||
|
|
||||||
debugg=0
|
debugg=0
|
||||||
|
|
||||||
@ -18,11 +16,13 @@ function failexit () {
|
|||||||
todel=/tmp/todel-flist.txt
|
todel=/tmp/todel-flist.txt
|
||||||
>$todel # clearit
|
>$todel # clearit
|
||||||
|
|
||||||
|
# if flist with no tar, del
|
||||||
|
|
||||||
declare -i fl tr # integer
|
declare -i fl tr # integer
|
||||||
fl=$(ls flist* |wc -l |awk '{print $1}')
|
fl=$(ls flist* |wc -l |awk '{print $1}')
|
||||||
tr=$(ls *tar* |grep -v flist |wc -l |awk '{print $1}')
|
tr=$(ls *tar* |grep -v flist |wc -l |awk '{print $1}')
|
||||||
echo "Flists: $fl -- Tars: $tr"
|
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
|
# regular array
|
||||||
declare -a flists=$(ls flist*)
|
declare -a flists=$(ls flist*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user