Skip to content
Snippets Groups Projects
Commit 2bd02042 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Adapt transfer.sh in case we run in the local machine.

parent ffed5af5
No related branches found
No related tags found
No related merge requests found
Pipeline #18729 failed
......@@ -17,7 +17,13 @@ DESTINATION_DIR=${MAIN_LOCAL_FOLDER}/${STARTDATE}/${MEMBER}
mkdir -p ${DESTINATION_DIR}
# Copy the output files
for file_name in ${OUTPUT_FILES}; do
rsync -v ${HPCUSER}@${HPCHOST}:${OUTPUT_DIR}/${file_name} ${DESTINATION_DIR}
done
if [[ "x$HPCHOST" == "xlocalhost" ]]; then
for file_name in ${OUTPUT_FILES}; do
rsync -v ${OUTPUT_DIR}/${file_name} ${DESTINATION_DIR}
done
else
# Copy the output files
for file_name in ${OUTPUT_FILES}; do
rsync -v ${HPCUSER}@${HPCHOST}:${OUTPUT_DIR}/${file_name} ${DESTINATION_DIR}
done
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment