Skip to content

Commit

Permalink
Add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alinz committed Nov 24, 2019
1 parent 6691150 commit 97ad76f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ executeSCP() {

# scp will fail if COMMAND is empty, this condition protects scp
if [[ $COMMAND = *[!\ ]* ]]; then
echo "scp -r -o StrictHostKeyChecking=no $COMMAND"
scp -r -o StrictHostKeyChecking=no $COMMAND
fi
done <<< $LINES
Expand All @@ -67,7 +68,9 @@ setupSSH
echo "+++++++++++++++++++RUNNING BEFORE SSH+++++++++++++++++++"
executeSSH "$INPUT_SSH_BEFORE"
echo "+++++++++++++++++++RUNNING BEFORE SSH+++++++++++++++++++"
echo "+++++++++++++++++++RUNNING SCP+++++++++++++++++++"
executeSCP "$INPUT_SCP"
echo "+++++++++++++++++++RUNNING SCP+++++++++++++++++++"
echo "+++++++++++++++++++RUNNING AFTER SSH+++++++++++++++++++"
executeSSH "$INPUT_SSH_AFTER"
echo "+++++++++++++++++++RUNNING AFTER SSH+++++++++++++++++++"

0 comments on commit 97ad76f

Please sign in to comment.