Skip to content

Commit

Permalink
Covered the case when a transfer list could not be created (e.g. if a…
Browse files Browse the repository at this point in the history
… GSI proxy certificate is missing or when guc cannot continue).
  • Loading branch information
fr4nk5ch31n3r committed Apr 24, 2015
1 parent 51f89b2 commit b0b872c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/gtransfer.bash
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,11 @@ else
# 1
# ```

if [[ ! -s "$gsiftpTransferList" ]]; then
helperFunctions/echoIfVerbose "${_program} [${gtInstance}]: Couldn't create transfer list. Exiting." 1>&2
exit $_gtransfer_exit_software
fi

_transferListSource=$( listTransfer/getSourceFromTransferList "$gsiftpTransferList" )
_transferListDestination=$( listTransfer/getDestinationFromTransferList "$gsiftpTransferList" )
#_dpath=$( listTransfer/dpathAvailable "$_transferListSource" "$_transferListDestination" )
Expand Down

0 comments on commit b0b872c

Please sign in to comment.