mirror of
https://github.com/containers/skopeo.git
synced 2025-04-28 03:10:18 +00:00
Speed up validate-git-marks by about a factor of three
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
4298692dd4
commit
aebab49285
@ -6,17 +6,7 @@ unset IFS
|
|||||||
|
|
||||||
badFiles=()
|
badFiles=()
|
||||||
for f in "${files[@]}"; do
|
for f in "${files[@]}"; do
|
||||||
if [ $(grep -r "^<<<<<<<" $f) ]; then
|
if [ $(grep -r "^\(<<<<<<<\|>>>>>>>\|^=======$\)" $f) ]; then
|
||||||
badFiles+=( "$f" )
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $(grep -r "^>>>>>>>" $f) ]; then
|
|
||||||
badFiles+=( "$f" )
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $(grep -r "^=======$" $f) ]; then
|
|
||||||
badFiles+=( "$f" )
|
badFiles+=( "$f" )
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user