[cmd_export] Knows to retry git annex get with error 255
This commit is contained in:
parent
0e41538ed3
commit
04e079222f
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ cmd_export() {
|
|||
git -C "${GIT_DIR}" annex get "${imageid}.flac" >${STDERR} 2>&1
|
||||
local ERROR=$?
|
||||
local GIT_GET=true
|
||||
[[ ${ERROR} -eq 255 ]] && git -C "${GIT_DIR}" annex get "${imageid}.flac" >/dev/null 2>&1
|
||||
local ERROR=$?
|
||||
[[ $ERROR -ne 0 ]] && { _ansi up 2; echo -en '\033[K'; echo "[ ${COUNT} / ${#updateableidList[@]} ] ${imageid} could not be downloaded from server"; cat ${STDERR}; local ERR=true; continue; }
|
||||
fi
|
||||
export_cp "${GIT_DIR}" "${TARGET}" "${DB_FILE}" ${imageid} > ${STDERR} 2>&1
|
||||
|
|
Loading…
Reference in a new issue