File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1107,8 +1107,9 @@ function notify()
1107
1107
error " Creating notification daemon on host ${hostServer} ..."
1108
1108
1109
1109
# Send the script to the server:
1110
- scp ${SCRIPTDIR} /${SCRIPTNAME} ${hostServer} :~ /. & > /dev/null
1111
- [[ $? -ne 0 ]] && error " ERROR: Could not copy cromshell to server ${hostServer} " && exit 7
1110
+ local tmpOut=$( makeTemp )
1111
+ scp ${SCRIPTDIR} /${SCRIPTNAME} ${hostServer} :~ /. & > ${tmpOut}
1112
+ [[ $? -ne 0 ]] && error " ERROR: Could not copy cromshell to server ${hostServer} " && error " $( cat ${tmpOut} ) " && exit 7
1112
1113
1113
1114
# Spin off notification process on the server:
1114
1115
results=$( ssh ${hostServer} " ~/${SCRIPTNAME} notify ${WORKFLOW_ID} ${email} ${WORKFLOW_SERVER_URL} " )
@@ -1407,9 +1408,7 @@ if ${ISINTERACTIVESHELL} ; then
1407
1408
1408
1409
# Check if we need to set this up.
1409
1410
# Note: because of how `notify` works, we can't require the setup for the notify action.
1410
- # if ${CROMWELL_NEEDS_SETUP} && [[ "${SUB_COMMAND}" != "notify" ]] ; then
1411
- if ${CROMWELL_NEEDS_SETUP} ; then
1412
-
1411
+ if ${CROMWELL_NEEDS_SETUP} && [[ " ${SUB_COMMAND} " != " notify" ]] ; then
1413
1412
# We need to setup this install.
1414
1413
# Now let's set it up:
1415
1414
which dialog & > /dev/null
You can’t perform that action at this time.
0 commit comments