fix
parent
156080a887
commit
cb8dde7055
|
|
@ -43,6 +43,7 @@ while [ "$i" -lt "${#trees[@]}" ]; do
|
|||
gitlab_path="${trees[i]}"
|
||||
echo gitlab_path=$gitlab_path, i=$i, trees=${#trees[@]}, files=${#files[@]}... >&2
|
||||
got="$(GITLAB_PATH=$gitlab_path list)"
|
||||
echo got="$got" >&2
|
||||
for nested_path in $(echo "$got" | jq -c .[] | grep '"type":"tree"' | jq -r .path | while read -r line; do echo "$line" | base64; done | grep .); do
|
||||
nested_path="$(echo "$nested_path" | base64 --decode)"
|
||||
if echo "${trees[@]}" | grep -q "[ ^]$nested_path[ $]"; then
|
||||
|
|
@ -55,7 +56,7 @@ while [ "$i" -lt "${#trees[@]}" ]; do
|
|||
if echo "${files[@]}" | grep -q "[ ^]$nested_path[ $]"; then
|
||||
continue
|
||||
fi
|
||||
files+=("$nested_path")
|
||||
files+=("$PROJECT.git/$nested_path")
|
||||
done
|
||||
i=$((i+1))
|
||||
if ((i>5)); then
|
||||
|
|
|
|||
Loading…
Reference in New Issue