Pārlūkot izejas kodu

Fix stripping of leading ./ on filenames

master
JustAnotherArchivist pirms 1 gada
vecāks
revīzija
c5adeb66e5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      codearchiver-bot

+ 1
- 1
codearchiver-bot Parādīt failu

@@ -173,7 +173,7 @@ function respond {
fi

# Collect new files, write artefacts file, move everything but the log file to ./failed/ if codearchiver exited non-zero
readarray -d $'\0' -t tmpnewfiles < <(find -maxdepth 1 -type f -newer '.filemarker' -print0 2> >(log_loop 'find new files err: ') | sed 's,^\./,,')
readarray -d $'\0' -t tmpnewfiles < <(find -maxdepth 1 -type f -newer '.filemarker' -print0 2> >(log_loop 'find new files err: ') | sed -z 's,^\./,,')
readarray -d $'\0' -t artefacts < <(for file in "${tmpnewfiles[@]}"; do if [[ "${file}" != "${logname}" ]]; then printf '%s\0' "${file}"; fi; done)
artefactsname="${logbasename}_codearchiver_artefacts.txt"
for file in "${artefacts[@]}"; do


Notiek ielāde…
Atcelt
Saglabāt