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
5c23587c31
commit
c2fcffb256
14
flist.sh
14
flist.sh
@ -1,7 +1,8 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash5
|
||||
|
||||
# Go thru .tar.gz, .tar.bz2 in dir and list them to flist--file.txt
|
||||
# NOTE this is adapted from an old version from original cubietruck! Mar 26 2014 flist
|
||||
|
||||
# Go thru .tar.gz, .tar.bz2 in dir and list them to flist-file
|
||||
function process () {
|
||||
#set -x
|
||||
args="$*"
|
||||
@ -16,9 +17,9 @@ renice +1 `pidof bzip2` 2>/dev/null
|
||||
else
|
||||
echo "Processing $bn"
|
||||
if [ "$compr" = "" ]; then
|
||||
time tar tvf $i > flist--$bn.txt
|
||||
time tar tvf $i > flist--$bn.txt 2>flist-errors--$bn.txt
|
||||
else
|
||||
time $compr -cd $args |tar tvf - > flist--$bn.txt
|
||||
time $compr -cd $args |tar tvf - >flist--$bn.txt 2>flist-errors--$bn.txt
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@ -86,4 +87,7 @@ for i in *.tar1; do
|
||||
process $i
|
||||
# time tar tvf $i > flist--$bn.txt
|
||||
done
|
||||
|
||||
|
||||
# Cleanup
|
||||
find . -type f -name flist-errors\* -empty -print -delete
|
||||
|
Loading…
x
Reference in New Issue
Block a user