Skip to content
Snippets Groups Projects
Commit 453ccb6c authored by Ray Garcia's avatar Ray Garcia :scream_cat:
Browse files

add SCP_DEST2 optional secondary destination

parent 424a29bc
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,12 @@ export -f scpurge
# send a group of files to AWIPS server
awipsitgood() {
if [ -n "$SCP_DEST2" ]; then
for attempts in `seq 5`; do
scp -i $SSH_IDENTITY "$@" $SCP_DEST2 && break
sleep 12
done
fi
for attempts in `seq 5`; do
scpurge "$@" && return 0
sleep 12
......
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