Commit fe998980 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Correction d'un bug

empêchant au programme de détecter une erreur iput
parent 89970fce
......@@ -61,9 +61,10 @@ irods_push(){
COMMAND="iput --retries 5 -T -K -f -X $RESIFDD_WORKDIR/${KEY}.restart $RESIFDD_WORKDIR/${KEY}.tar $KEY/staging.tar"
start=$(date +%s)
duration=$(($(date +%s)-$start))
throughput=$(($SIZEMB / $duration ))
if [[ $? -ne 0 ]]; then
if [[ $IPUTRC -ne 0 ]]; then
echo "[$KEY] Error 011 sending file to irods. The command was: $COMMAND"
format_report $KEY $SIZEMB $(date +%Y-%m-%dT%H%M%S --date=@$start) $duration $throughput 'Error 011. Transfer Cancelled' >> $LOCAL_REPORT
# Roll back
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment