summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-09 14:36:34 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-09 14:36:34 -0700
commit19649ea71d3c348069afacc460c1bedd5a6788b9 (patch)
treed93325422d7575d85245064ca5678aba9c35b23c
parent6a4fc2d15141cd922327267e376302f65a3bb277 (diff)
downloadtilde.club-19649ea71d3c348069afacc460c1bedd5a6788b9.tar.gz
tilde.club-19649ea71d3c348069afacc460c1bedd5a6788b9.zip
fix path
-rwxr-xr-xdeploy.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index 0799a23..06e13df 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -5,7 +5,8 @@ set -e
echo $SSH_KEY | base64 -d >> /tmp/key
chmod -R 0600 /tmp/key
-for item in dist/*; do
+cd dist
+for item in *; do
echo "copying $item"
if [ -d "$item" ]; then
SOURCE_PATH="$item/"
@@ -16,6 +17,7 @@ for item in dist/*; do
fi
rsync -e "ssh -i /tmp/key -o StrictHostKeyChecking=no" -avz --delete $SOURCE_PATH $DEST_PATH
done
+cd ..
echo "finished copying to remote host..."
rm /tmp/key