mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 19:44:20 +00:00
refactor command "listfiles" to "files"
This commit is contained in:
@@ -92,13 +92,13 @@ cd ${ddpath} | ${bin} compare -c ${cfg} -p p3
|
||||
cd ${ddpath} | ${bin} compare -c ${cfg} -p p0
|
||||
|
||||
# list
|
||||
cd ${ddpath} | ${bin} listfiles -c ${cfg} -p p1 | grep f_abc
|
||||
cd ${ddpath} | ${bin} listfiles -c ${cfg} -p p2 | grep f_abc
|
||||
cd ${ddpath} | ${bin} listfiles -c ${cfg} -p p3 | grep f_abc
|
||||
cd ${ddpath} | ${bin} listfiles -c ${cfg} -p p0 | grep f_abc
|
||||
cd ${ddpath} | ${bin} files -c ${cfg} -p p1 | grep f_abc
|
||||
cd ${ddpath} | ${bin} files -c ${cfg} -p p2 | grep f_abc
|
||||
cd ${ddpath} | ${bin} files -c ${cfg} -p p3 | grep f_abc
|
||||
cd ${ddpath} | ${bin} files -c ${cfg} -p p0 | grep f_abc
|
||||
|
||||
# count
|
||||
cnt=`cd ${ddpath} | ${bin} listfiles -c ${cfg} -p p1 -b | grep '^f_' | wc -l`
|
||||
cnt=`cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -b | grep '^f_' | wc -l`
|
||||
[ "${cnt}" != "1" ] && exit 1
|
||||
|
||||
## CLEANING
|
||||
|
||||
Reference in New Issue
Block a user