Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 76b7d90

Browse files
dmiusDmitry
authored andcommitted
Aws paths fix
1 parent a5254e2 commit 76b7d90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nancy_run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ function copyFile() {
627627
if [ "$RUN_ON" = "localhost" ]; then
628628
ln ${1/file:\/\//} "$TMP_PATH/nancy_$containerHash/" # TODO: option – hard links OR regular `cp`
629629
elif [ "$RUN_ON" = "aws" ]; then
630-
docker-machine scp $1 $DOCKER_MACHINE:/home/ubuntu
630+
docker-machine scp $1 $DOCKER_MACHINE:/home/ubuntu/nancy_${containerHash}
631631
else
632632
>&2 echo "ASSERT: must not reach this point"
633633
exit 1
@@ -727,8 +727,8 @@ else
727727
cp "$TMP_PATH/nancy_$containerHash/"$ARTIFACTS_FILENAME.json $ARTIFACTS_DESTINATION/
728728
cp "$TMP_PATH/nancy_$containerHash/"$ARTIFACTS_FILENAME.log.gz $ARTIFACTS_DESTINATION/
729729
elif [ "$RUN_ON" = "aws" ]; then
730-
docker-machine scp $DOCKER_MACHINE:/home/ubuntu/$ARTIFACTS_FILENAME.json $ARTIFACTS_DESTINATION/
731-
docker-machine scp $DOCKER_MACHINE:/home/ubuntu/$ARTIFACTS_FILENAME.log.gz $ARTIFACTS_DESTINATION/
730+
docker-machine scp $DOCKER_MACHINE:/home/ubuntu/nancy_$containerHash/$ARTIFACTS_FILENAME.json $ARTIFACTS_DESTINATION/
731+
docker-machine scp $DOCKER_MACHINE:/home/ubuntu/nancy_$containerHash/$ARTIFACTS_FILENAME.log.gz $ARTIFACTS_DESTINATION/
732732
else
733733
>&2 echo "ASSERT: must not reach this point"
734734
exit 1

0 commit comments

Comments
 (0)