This commit is contained in:
parent
6a4fc2d151
commit
19649ea71d
@ -5,7 +5,8 @@ set -e
|
|||||||
echo $SSH_KEY | base64 -d >> /tmp/key
|
echo $SSH_KEY | base64 -d >> /tmp/key
|
||||||
chmod -R 0600 /tmp/key
|
chmod -R 0600 /tmp/key
|
||||||
|
|
||||||
for item in dist/*; do
|
cd dist
|
||||||
|
for item in *; do
|
||||||
echo "copying $item"
|
echo "copying $item"
|
||||||
if [ -d "$item" ]; then
|
if [ -d "$item" ]; then
|
||||||
SOURCE_PATH="$item/"
|
SOURCE_PATH="$item/"
|
||||||
@ -16,6 +17,7 @@ for item in dist/*; do
|
|||||||
fi
|
fi
|
||||||
rsync -e "ssh -i /tmp/key -o StrictHostKeyChecking=no" -avz --delete $SOURCE_PATH $DEST_PATH
|
rsync -e "ssh -i /tmp/key -o StrictHostKeyChecking=no" -avz --delete $SOURCE_PATH $DEST_PATH
|
||||||
done
|
done
|
||||||
|
cd ..
|
||||||
echo "finished copying to remote host..."
|
echo "finished copying to remote host..."
|
||||||
|
|
||||||
rm /tmp/key
|
rm /tmp/key
|
||||||
|
Loading…
Reference in New Issue
Block a user